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