|
| 1 | +error[E0107]: trait takes 1 generic argument but 0 generic arguments were supplied |
| 2 | + --> $DIR/name-same-as-generic-type-issue-128249.rs:4:30 |
| 3 | + | |
| 4 | +LL | fn one(&self, val: impl Trait<Type: Default>); |
| 5 | + | ^^^^^ expected 1 generic argument |
| 6 | + | |
| 7 | +note: trait defined here, with 1 generic parameter: `Type` |
| 8 | + --> $DIR/name-same-as-generic-type-issue-128249.rs:1:7 |
| 9 | + | |
| 10 | +LL | trait Trait<Type> { |
| 11 | + | ^^^^^ ---- |
| 12 | +help: add missing generic argument |
| 13 | + | |
| 14 | +LL | fn one(&self, val: impl Trait<Type, Type: Default>); |
| 15 | + | +++++ |
| 16 | + |
| 17 | +error[E0107]: trait takes 1 generic argument but 0 generic arguments were supplied |
| 18 | + --> $DIR/name-same-as-generic-type-issue-128249.rs:7:15 |
| 19 | + | |
| 20 | +LL | fn two<T: Trait<Type: Default>>(&self) -> T; |
| 21 | + | ^^^^^ expected 1 generic argument |
| 22 | + | |
| 23 | +note: trait defined here, with 1 generic parameter: `Type` |
| 24 | + --> $DIR/name-same-as-generic-type-issue-128249.rs:1:7 |
| 25 | + | |
| 26 | +LL | trait Trait<Type> { |
| 27 | + | ^^^^^ ---- |
| 28 | +help: add missing generic argument |
| 29 | + | |
| 30 | +LL | fn two<T: Trait<Type, Type: Default>>(&self) -> T; |
| 31 | + | +++++ |
| 32 | + |
| 33 | +error[E0107]: trait takes 1 generic argument but 0 generic arguments were supplied |
| 34 | + --> $DIR/name-same-as-generic-type-issue-128249.rs:11:12 |
| 35 | + | |
| 36 | +LL | T: Trait<Type: Default>,; |
| 37 | + | ^^^^^ expected 1 generic argument |
| 38 | + | |
| 39 | +note: trait defined here, with 1 generic parameter: `Type` |
| 40 | + --> $DIR/name-same-as-generic-type-issue-128249.rs:1:7 |
| 41 | + | |
| 42 | +LL | trait Trait<Type> { |
| 43 | + | ^^^^^ ---- |
| 44 | +help: add missing generic argument |
| 45 | + | |
| 46 | +LL | T: Trait<Type, Type: Default>,; |
| 47 | + | +++++ |
| 48 | + |
| 49 | +error: aborting due to 3 previous errors |
| 50 | + |
| 51 | +For more information about this error, try `rustc --explain E0107`. |
0 commit comments