|
LL | let bar: Bar<f64> = return;
| ^^^^^^^^ the trait `Trait` is not implemented for `f64`
- |
+ |
::: $DIR/auxiliary/on_structs_and_enums_xc.rs:9:16
|
LL | pub enum Bar<T:Trait> {
LL | let foo = Foo {
| ^^^ the trait `Trait` is not implemented for `{integer}`
|
- = note: required by `Foo`
+note: required by `Foo`
+ --> $DIR/auxiliary/on_structs_and_enums_xc.rs:5:1
+ |
+LL | pub struct Foo<T:Trait> {
+ | ^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors