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