]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/bound/on-structs-and-enums-xc1.stderr
Auto merge of #101017 - JohnTitor:rollup-73f2fhb, r=JohnTitor
[rust.git] / src / test / ui / traits / bound / on-structs-and-enums-xc1.stderr
1 error[E0277]: the trait bound `f64: Trait` is not satisfied
2   --> $DIR/on-structs-and-enums-xc1.rs:12:14
3    |
4 LL |     let bar: Bar<f64> = return;
5    |              ^^^^^^^^ the trait `Trait` is not implemented for `f64`
6    |
7 note: required by a bound in `Bar`
8   --> $DIR/auxiliary/on_structs_and_enums_xc.rs:9:16
9    |
10 LL | pub enum Bar<T:Trait> {
11    |                ^^^^^ required by this bound in `Bar`
12
13 error[E0277]: the trait bound `{integer}: Trait` is not satisfied
14   --> $DIR/on-structs-and-enums-xc1.rs:9:12
15    |
16 LL |         x: 3
17    |            ^ the trait `Trait` is not implemented for `{integer}`
18    |
19 note: required by a bound in `Foo`
20   --> $DIR/auxiliary/on_structs_and_enums_xc.rs:5:18
21    |
22 LL | pub struct Foo<T:Trait> {
23    |                  ^^^^^ required by this bound in `Foo`
24
25 error: aborting due to 2 previous errors
26
27 For more information about this error, try `rustc --explain E0277`.