]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/issue-63279.min_tait.stderr
Auto merge of #82980 - tmiasko:import-cold-multiplier, r=michaelwoerister
[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 opaque type, found `()`
15    |
16    = note: expected opaque type `impl FnOnce<()>`
17                 found unit type `()`
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`.