mirror of https://github.com/rust-lang/rust
13 lines
348 B
Plaintext
13 lines
348 B
Plaintext
error[E0308]: mismatched types
|
|
--> $DIR/issue-74280.rs:9:5
|
|
|
|
|
LL | fn test() -> Test {
|
|
| ---- expected `()` because of return type
|
|
LL | let y = || -> Test { () };
|
|
LL | 7
|
|
| ^ expected `()`, found integer
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|