1 error[E0308]: mismatched types
2 --> $DIR/abridged.rs:26:5
4 26 | Some(Foo { bar: 1 })
5 | ^^^^^^^^^^^^^^^^^^^^ expected struct `Foo`, found enum `std::option::Option`
7 = note: expected type `Foo`
8 found type `std::option::Option<Foo>`
10 error[E0308]: mismatched types
11 --> $DIR/abridged.rs:30:5
13 30 | Ok(Foo { bar: 1})
14 | ^^^^^^^^^^^^^^^^^ expected struct `Foo`, found enum `std::result::Result`
16 = note: expected type `Foo`
17 found type `std::result::Result<Foo, _>`
19 error[E0308]: mismatched types
20 --> $DIR/abridged.rs:34:5
23 | ^^^^^^^^^^^^^^ expected enum `std::option::Option`, found struct `Foo`
25 = note: expected type `std::option::Option<Foo>`
28 error[E0308]: mismatched types
29 --> $DIR/abridged.rs:38:5
32 | ^^^^^^^^^^^^^^ expected enum `std::result::Result`, found struct `Foo`
34 = note: expected type `std::result::Result<Foo, Bar>`
37 error[E0308]: mismatched types
38 --> $DIR/abridged.rs:42:5
41 | _____^ starting here...
43 44 | | x: "".to_string(),
48 | |_____^ ...ending here: expected struct `std::string::String`, found integral variable
50 = note: expected type `X<X<_, std::string::String>, std::string::String>`
51 found type `X<X<_, {integer}>, {integer}>`
53 error[E0308]: mismatched types
54 --> $DIR/abridged.rs:52:5
57 | _____^ starting here...
59 54 | | x: "".to_string(),
62 57 | | y: "".to_string(),
64 | |_____^ ...ending here: expected struct `std::string::String`, found integral variable
66 = note: expected type `X<X<_, std::string::String>, _>`
67 found type `X<X<_, {integer}>, _>`
69 error: aborting due to 6 previous errors