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:22:9
34 LL | fn baz() -> impl std::fmt::Display {
35 | ---------------------- expected because this return type...
38 | ---- ...is found to be `i32` here
41 | ^^^^ expected i32, found u32
43 = note: expected type `i32`
46 error[E0308]: if and else have incompatible types
47 --> $DIR/point-to-type-err-cause-on-impl-trait-return.rs:31:9
51 | | ---- expected because of this
54 | | ^^^^ expected i32, found u32
57 | |_____- if and else have incompatible types
59 = note: expected type `i32`
62 error: aborting due to 4 previous errors
64 For more information about this error, try `rustc --explain E0308`.