about summary refs log tree commit diff
path: root/tests/ui/type-alias-impl-trait/type-alias-impl-trait-with-no-traits.stderr
blob: da8fc595f6a6b57e518410e8360e97ec6d30c3c0 (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:11:13
   |
LL | fn bar() -> impl 'static {
   |             ^^^^^^^^^^^^

error: aborting due to 2 previous errors