fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the trait bound `u32: Trait` is not satisfied 2 --> $DIR/on-structs-and-enums-in-fns.rs:13:15 3 | 4LL | fn explode(x: Foo<u32>) {} 5 | ^^^^^^^^ the trait `Trait` is not implemented for `u32` 6 | 7help: this trait has no implementations, consider adding one 8 --> $DIR/on-structs-and-enums-in-fns.rs:1:1 9 | 10LL | trait Trait {} 11 | ^^^^^^^^^^^ 12note: required by a bound in `Foo` 13 --> $DIR/on-structs-and-enums-in-fns.rs:3:14 14 | 15LL | struct Foo<T:Trait> { 16 | ^^^^^ required by this bound in `Foo` 17 18error[E0277]: the trait bound `f32: Trait` is not satisfied 19 --> $DIR/on-structs-and-enums-in-fns.rs:16:14 20 | 21LL | fn kaboom(y: Bar<f32>) {} 22 | ^^^^^^^^ the trait `Trait` is not implemented for `f32` 23 | 24help: this trait has no implementations, consider adding one 25 --> $DIR/on-structs-and-enums-in-fns.rs:1:1 26 | 27LL | trait Trait {} 28 | ^^^^^^^^^^^ 29note: required by a bound in `Bar` 30 --> $DIR/on-structs-and-enums-in-fns.rs:7:12 31 | 32LL | enum Bar<T:Trait> { 33 | ^^^^^ required by this bound in `Bar` 34 35error: aborting due to 2 previous errors 36 37For more information about this error, try `rustc --explain E0277`.