]> git.proxmox.com Git - rustc.git/blob - src/test/ui/type-alias-impl-trait/issue-63279.stderr
New upstream version 1.41.1+dfsg1
[rustc.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 opaque type `Closure`
8 found unit 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`.