summaryrefslogtreecommitdiffstats
path: root/src/test/ui/auto-traits/typeck-default-trait-impl-precedence.stderr
blob: ce7095664c11a3798fcae9f8bccfd967562f5ad8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
error[E0277]: the trait bound `u32: Signed` is not satisfied
  --> $DIR/typeck-default-trait-impl-precedence.rs:19:20
   |
LL |     is_defaulted::<&'static u32>();
   |                    ^^^^^^^^^^^^ the trait `Signed` is not implemented for `u32`
   |
   = help: the trait `Signed` is implemented for `i32`
note: required for `&'static u32` to implement `Defaulted`
  --> $DIR/typeck-default-trait-impl-precedence.rs:10:19
   |
LL | impl<'a,T:Signed> Defaulted for &'a T { }
   |                   ^^^^^^^^^     ^^^^^
note: required by a bound in `is_defaulted`
  --> $DIR/typeck-default-trait-impl-precedence.rs:12:19
   |
LL | fn is_defaulted<T:Defaulted>() { }
   |                   ^^^^^^^^^ required by this bound in `is_defaulted`

error: aborting due to previous error

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