1 error[E0308]: mismatched types
2 --> $DIR/point-to-type-err-cause-on-impl-trait-return.rs:5:5
4 LL | fn foo() -> impl std::fmt::Display {
5 | ---------------------- expected because this return type...
8 | ---- ...is found to be `i32` here
11 | ^^^^ expected i32, found u32
13 = note: expected type `i32`
16 error[E0308]: mismatched types
17 --> $DIR/point-to-type-err-cause-on-impl-trait-return.rs:13:16
19 LL | fn bar() -> impl std::fmt::Display {
20 | ---------------------- expected because this return type...
23 | ---- ...is found to be `i32` here
26 | ^^^^ expected i32, found u32
28 = note: expected type `i32`
31 error[E0308]: mismatched types
32 --> $DIR/point-to-type-err-cause-on-impl-trait-return.rs:19:5
34 LL | fn baz() -> impl std::fmt::Display {
35 | ---------------------- expected because this return type...
39 | | ---- ...is found to be `i32` here
43 | |_____^ expected i32, found u32
45 = note: expected type `i32`
48 error[E0308]: if and else have incompatible types
49 --> $DIR/point-to-type-err-cause-on-impl-trait-return.rs:31:9
53 | | ---- expected because of this
56 | | ^^^^ expected i32, found u32
59 | |_____- if and else have incompatible types
61 = note: expected type `i32`
64 error: aborting due to 4 previous errors
66 For more information about this error, try `rustc --explain E0308`.