]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/trait-bounds-on-structs-and-enums-xc.stderr
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / traits / trait-bounds-on-structs-and-enums-xc.stderr
1 error[E0277]: the trait bound `usize: trait_bounds_on_structs_and_enums_xc::Trait` is not satisfied
2   --> $DIR/trait-bounds-on-structs-and-enums-xc.rs:7:1
3    |
4 LL | fn explode(x: Foo<usize>) {}
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `trait_bounds_on_structs_and_enums_xc::Trait` is not implemented for `usize`
6    |
7    = note: required by `trait_bounds_on_structs_and_enums_xc::Foo`
8
9 error[E0277]: the trait bound `f32: trait_bounds_on_structs_and_enums_xc::Trait` is not satisfied
10   --> $DIR/trait-bounds-on-structs-and-enums-xc.rs:10:1
11    |
12 LL | fn kaboom(y: Bar<f32>) {}
13    | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `trait_bounds_on_structs_and_enums_xc::Trait` is not implemented for `f32`
14    |
15    = note: required by `trait_bounds_on_structs_and_enums_xc::Bar`
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0277`.