]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/issue-84660-trait-impl-for-tait.stderr
Auto merge of #95454 - randomicon00:fix95444, r=wesleywiser
[rust.git] / src / test / ui / type-alias-impl-trait / issue-84660-trait-impl-for-tait.stderr
1 error: cannot implement trait on type alias impl trait
2   --> $DIR/issue-84660-trait-impl-for-tait.rs:15:15
3    |
4 LL | impl TraitArg<Bar> for () {
5    |               ^^^
6    |
7 note: type alias impl trait defined here
8   --> $DIR/issue-84660-trait-impl-for-tait.rs:8:12
9    |
10 LL | type Bar = impl Foo;
11    |            ^^^^^^^^
12
13 error: aborting due to previous error
14