]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/type-alias-impl-trait-with-no-traits.stderr
Auto merge of #106503 - cjgillot:remap-nofilter, r=oli-obk
[rust.git] / tests / ui / type-alias-impl-trait / type-alias-impl-trait-with-no-traits.stderr
1 error: at least one trait must be specified
2   --> $DIR/type-alias-impl-trait-with-no-traits.rs:3:12
3    |
4 LL | type Foo = impl 'static;
5    |            ^^^^^^^^^^^^
6
7 error: at least one trait must be specified
8   --> $DIR/type-alias-impl-trait-with-no-traits.rs:10:13
9    |
10 LL | fn bar() -> impl 'static {
11    |             ^^^^^^^^^^^^
12
13 error: aborting due to 2 previous errors
14