]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/issue-63279.min_tait.stderr
Loop over all opaque types instead of looking at just the first one with the same...
[rust.git] / src / test / ui / type-alias-impl-trait / issue-63279.min_tait.stderr
1 error[E0658]: type alias impl trait is not permitted here
2   --> $DIR/issue-63279.rs:11:11
3    |
4 LL |     || -> Closure { || () }
5    |           ^^^^^^^
6    |
7    = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
8    = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable
9
10 error[E0271]: type mismatch resolving `<[closure@$DIR/issue-63279.rs:11:5: 11:28] as FnOnce<()>>::Output == ()`
11   --> $DIR/issue-63279.rs:8:16
12    |
13 LL | type Closure = impl FnOnce();
14    |                ^^^^^^^^^^^^^ expected `()`, found opaque type
15    |
16    = note: expected unit type `()`
17             found opaque type `impl FnOnce<()>`
18
19 error: aborting due to 2 previous errors
20
21 Some errors have detailed explanations: E0271, E0658.
22 For more information about an error, try `rustc --explain E0271`.