]> git.lizzy.rs Git - rust.git/blob - src/test/ui/auto-traits/typeck-default-trait-impl-precedence.stderr
Auto merge of #99028 - tmiasko:inline, r=estebank
[rust.git] / src / test / ui / auto-traits / typeck-default-trait-impl-precedence.stderr
1 error[E0277]: the trait bound `u32: Signed` is not satisfied
2   --> $DIR/typeck-default-trait-impl-precedence.rs:19:5
3    |
4 LL |     is_defaulted::<&'static u32>();
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Signed` is not implemented for `u32`
6    |
7    = help: the trait `Signed` is implemented for `i32`
8 note: required because of the requirements on the impl of `Defaulted` for `&'static u32`
9   --> $DIR/typeck-default-trait-impl-precedence.rs:10:19
10    |
11 LL | impl<'a,T:Signed> Defaulted for &'a T { }
12    |                   ^^^^^^^^^     ^^^^^
13 note: required by a bound in `is_defaulted`
14   --> $DIR/typeck-default-trait-impl-precedence.rs:12:19
15    |
16 LL | fn is_defaulted<T:Defaulted>() { }
17    |                   ^^^^^^^^^ required by this bound in `is_defaulted`
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0277`.