summaryrefslogtreecommitdiffstats
path: root/tests/ui/type-alias-impl-trait/type-alias-impl-trait-with-no-traits.stderr
blob: 3f7acd3383010a190581d9146cad5b1c1e9ee9df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: at least one trait must be specified
  --> $DIR/type-alias-impl-trait-with-no-traits.rs:3:12
   |
LL | type Foo = impl 'static;
   |            ^^^^^^^^^^^^

error: at least one trait must be specified
  --> $DIR/type-alias-impl-trait-with-no-traits.rs:10:13
   |
LL | fn bar() -> impl 'static {
   |             ^^^^^^^^^^^^

error: aborting due to 2 previous errors