]> git.lizzy.rs Git - rust.git/blob - tests/ui/rfc-2397-do-not-recommend/feature-gate-do_not_recommend.stderr
Rollup merge of #106783 - WaffleLapkin:break-my-ident, r=wesleywiser
[rust.git] / tests / ui / rfc-2397-do-not-recommend / feature-gate-do_not_recommend.stderr
1 error[E0277]: the trait bound `u8: Foo` is not satisfied
2   --> $DIR/feature-gate-do_not_recommend.rs:19:11
3    |
4 LL |     stuff(1u8);
5    |     ----- ^^^ the trait `Foo` is not implemented for `u8`
6    |     |
7    |     required by a bound introduced by this call
8    |
9    = help: the trait `Foo` is implemented for `i32`
10 note: required for `u8` to implement `Bar`
11   --> $DIR/feature-gate-do_not_recommend.rs:13:14
12    |
13 LL | impl<T: Foo> Bar for T {
14    |         ---  ^^^     ^
15    |         |
16    |         unsatisfied trait bound introduced here
17 note: required by a bound in `stuff`
18   --> $DIR/feature-gate-do_not_recommend.rs:16:13
19    |
20 LL | fn stuff<T: Bar>(_: T) {}
21    |             ^^^ required by this bound in `stuff`
22
23 error: aborting due to previous error
24
25 For more information about this error, try `rustc --explain E0277`.