blob: 97e2fa0ae3f45b6f321b89a410ef3780a4915604 [file]
error[E0207]: the type parameter `T` is not constrained by the impl trait, self type, or predicates
--> $DIR/E0207.rs:3:6
|
LL | impl<T: Default> Foo {
| ^ unconstrained type parameter
|
help: use the type parameter `T` in the `Foo` type and use it in the type definition
|
LL ~ struct Foo<T>;
LL |
LL ~ impl<T: Default> Foo<T> {
|
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0207`.