]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/coherence.stderr
Rollup merge of #99064 - lyming2007:issue-97687-fix, r=estebank
[rust.git] / src / test / ui / type-alias-impl-trait / coherence.stderr
1 error: cannot implement trait on type alias impl trait
2   --> $DIR/coherence.rs:14:41
3    |
4 LL | impl<T> foreign_crate::ForeignTrait for AliasOfForeignType<T> {}
5    |                                         ^^^^^^^^^^^^^^^^^^^^^
6    |
7 note: type alias impl trait defined here
8   --> $DIR/coherence.rs:9:30
9    |
10 LL | type AliasOfForeignType<T> = impl LocalTrait;
11    |                              ^^^^^^^^^^^^^^^
12
13 error: aborting due to previous error
14