--> $DIR/return-type.rs:10:5
|
LL | foo(4 as usize)
- | ^^^^^^^^^^^^^^^ expected (), found struct `S`
+ | ^^^^^^^^^^^^^^^ expected `()`, found struct `S`
|
- = note: expected type `()`
- found type `S<usize>`
+ = note: expected unit type `()`
+ found struct `S<usize>`
help: try adding a semicolon
|
LL | foo(4 as usize);