error[E0308]: mismatched types --> $DIR/abridged.rs:26:5 | 26 | Some(Foo { bar: 1 }) | ^^^^^^^^^^^^^^^^^^^^ expected struct `Foo`, found enum `std::option::Option` | = note: expected type `Foo` found type `std::option::Option` error[E0308]: mismatched types --> $DIR/abridged.rs:30:5 | 30 | Ok(Foo { bar: 1}) | ^^^^^^^^^^^^^^^^^ expected struct `Foo`, found enum `std::result::Result` | = note: expected type `Foo` found type `std::result::Result` error[E0308]: mismatched types --> $DIR/abridged.rs:34:5 | 34 | Foo { bar: 1 } | ^^^^^^^^^^^^^^ expected enum `std::option::Option`, found struct `Foo` | = note: expected type `std::option::Option` found type `Foo` error[E0308]: mismatched types --> $DIR/abridged.rs:38:5 | 38 | Foo { bar: 1 } | ^^^^^^^^^^^^^^ expected enum `std::result::Result`, found struct `Foo` | = note: expected type `std::result::Result` found type `Foo` error[E0308]: mismatched types --> $DIR/abridged.rs:42:5 | 42 | X { | _____^ starting here... 43 | | x: X { 44 | | x: "".to_string(), 45 | | y: 2, 46 | | }, 47 | | y: 3, 48 | | } | |_____^ ...ending here: expected struct `std::string::String`, found integral variable | = note: expected type `X, std::string::String>` found type `X, {integer}>` error[E0308]: mismatched types --> $DIR/abridged.rs:52:5 | 52 | X { | _____^ starting here... 53 | | x: X { 54 | | x: "".to_string(), 55 | | y: 2, 56 | | }, 57 | | y: "".to_string(), 58 | | } | |_____^ ...ending here: expected struct `std::string::String`, found integral variable | = note: expected type `X, _>` found type `X, _>` error: aborting due to 6 previous errors