fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
766 B21 linesraw
1error[E0277]: the trait bound `u32: Trait` is not satisfied
2  --> $DIR/trait_objects_fail.rs:26:9
3   |
4LL |     foo(&10_u32);
5   |         ^^^^^^^ the trait `Trait` is not implemented for `u32`
6   |
7   = help: the trait `Trait<2>` is implemented for `u32`
8   = note: required for the cast from `&u32` to `&dyn Trait`
9
10error[E0277]: the trait bound `bool: Traitor<_>` is not satisfied
11  --> $DIR/trait_objects_fail.rs:28:9
12   |
13LL |     bar(&true);
14   |         ^^^^^ the trait `Traitor<_>` is not implemented for `bool`
15   |
16   = help: the trait `Traitor<2, 3>` is implemented for `bool`
17   = note: required for the cast from `&bool` to `&dyn Traitor<_>`
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0277`.