]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/issue-63279.stderr
Check opaque types satisfy their bounds
[rust.git] / src / test / ui / type-alias-impl-trait / issue-63279.stderr
1 error[E0271]: type mismatch resolving `<[closure@$DIR/issue-63279.rs:8:5: 8:28] as FnOnce<()>>::Output == ()`
2   --> $DIR/issue-63279.rs:5:16
3    |
4 LL | type Closure = impl FnOnce();
5    |                ^^^^^^^^^^^^^ expected opaque type, found `()`
6    |
7    = note: expected opaque type `impl FnOnce<()>`
8                 found unit type `()`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0271`.