]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/defaults/trait_objects_fail.stderr
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / tests / ui / const-generics / defaults / trait_objects_fail.stderr
1 error[E0277]: the trait bound `u32: Trait` is not satisfied
2   --> $DIR/trait_objects_fail.rs:26:9
3    |
4 LL |     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 the object type `dyn Trait`
9
10 error[E0277]: the trait bound `bool: Traitor<_>` is not satisfied
11   --> $DIR/trait_objects_fail.rs:28:9
12    |
13 LL |     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 the object type `dyn Traitor<_>`
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0277`.