1 error[E0308]: mismatched types
2 --> $DIR/return-type.rs:20:5
5 | ^^^^^^^^^^^^^^^ expected (), found struct `S`
7 = note: expected type `()`
9 help: try adding a semicolon
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`.