]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/issue-63279.stderr
Add test for issue-63279
[rust.git] / src / test / ui / type-alias-impl-trait / issue-63279.stderr
1 error[E0271]: type mismatch resolving `<[closure@$DIR/issue-63279.rs:6:5: 6:28] as std::ops::FnOnce<()>>::Output == ()`
2   --> $DIR/issue-63279.rs:3:1
3    |
4 LL | type Closure = impl FnOnce();
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected opaque type, found ()
6    |
7    = note: expected type `Closure`
8               found type `()`
9    = note: the return type of a function must have a statically known size
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0271`.