]> git.proxmox.com Git - rustc.git/blame - src/test/ui/traits/trait-bounds-on-structs-and-enums-xc.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / traits / trait-bounds-on-structs-and-enums-xc.stderr
CommitLineData
1b1a35ee 1error[E0277]: the trait bound `usize: Trait` is not satisfied
74b04a01 2 --> $DIR/trait-bounds-on-structs-and-enums-xc.rs:7:15
b7449926
XL
3 |
4LL | fn explode(x: Foo<usize>) {}
1b1a35ee 5 | ^^^^^^^^^^ the trait `Trait` is not implemented for `usize`
ba9703b0
XL
6 |
7 ::: $DIR/auxiliary/trait_bounds_on_structs_and_enums_xc.rs:5:18
b7449926 8 |
ba9703b0 9LL | pub struct Foo<T:Trait> {
1b1a35ee 10 | ----- required by this bound in `Foo`
b7449926 11
1b1a35ee 12error[E0277]: the trait bound `f32: Trait` is not satisfied
74b04a01 13 --> $DIR/trait-bounds-on-structs-and-enums-xc.rs:10:14
b7449926
XL
14 |
15LL | fn kaboom(y: Bar<f32>) {}
1b1a35ee 16 | ^^^^^^^^ the trait `Trait` is not implemented for `f32`
ba9703b0
XL
17 |
18 ::: $DIR/auxiliary/trait_bounds_on_structs_and_enums_xc.rs:9:16
b7449926 19 |
ba9703b0 20LL | pub enum Bar<T:Trait> {
1b1a35ee 21 | ----- required by this bound in `Bar`
b7449926
XL
22
23error: aborting due to 2 previous errors
24
25For more information about this error, try `rustc --explain E0277`.