summaryrefslogtreecommitdiffstats
path: root/src/test/ui/type-alias-impl-trait/issue-84660-trait-impl-for-tait.stderr
blob: bb70d07be59bb0da395cd94836186ebc06d5e379 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: cannot implement trait on type alias impl trait
  --> $DIR/issue-84660-trait-impl-for-tait.rs:15:15
   |
LL | impl TraitArg<Bar> for () {
   |               ^^^
   |
note: type alias impl trait defined here
  --> $DIR/issue-84660-trait-impl-for-tait.rs:8:12
   |
LL | type Bar = impl Foo;
   |            ^^^^^^^^

error: aborting due to previous error