1 error[E0308]: mismatched types
2 --> $DIR/return-type.rs:10:5
5 | ^^^^^^^^^^^^^^^ expected `()`, found struct `S`
7 = note: expected unit type `()`
8 found struct `S<usize>`
9 help: consider using a semicolon here
13 help: try adding a return type
15 LL | fn bar() -> S<usize> {
18 error: aborting due to previous error
20 For more information about this error, try `rustc --explain E0308`.