summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-inherent-types/unsatisfied-bounds-inferred-type.stderr
blob: ecf30f4cdec58626e3b9714c5832dfabe00f0cf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error[E0277]: the trait bound `String: Copy` is not satisfied
  --> $DIR/unsatisfied-bounds-inferred-type.rs:11:12
   |
LL |     let _: S<_>::T = String::new();
   |            ^^^^^^^ the trait `Copy` is not implemented for `String`
   |
note: required by a bound in `S<T>::T`
  --> $DIR/unsatisfied-bounds-inferred-type.rs:6:9
   |
LL | impl<T: Copy> S<T> {
   |         ^^^^ required by this bound in `S<T>::T`
LL |     type T = T;
   |          - required by a bound in this associated type

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.