]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error[E0308]: mismatched types |
0731742a | 2 | --> $DIR/no_revealing_outside_defining_module.rs:15:19 |
8faf50e0 | 3 | | |
dfeec247 | 4 | LL | pub type Boo = impl ::std::fmt::Debug; |
f035d41b | 5 | | ---------------------- the found opaque type |
dfeec247 | 6 | ... |
532ac7d7 | 7 | LL | let _: &str = bomp(); |
60c5eb7d XL |
8 | | ---- ^^^^^^ expected `&str`, found opaque type |
9 | | | | |
10 | | expected due to this | |
8faf50e0 | 11 | | |
60c5eb7d | 12 | = note: expected reference `&str` |
1b1a35ee | 13 | found opaque type `impl Debug` |
8faf50e0 XL |
14 | |
15 | error[E0308]: mismatched types | |
0731742a | 16 | --> $DIR/no_revealing_outside_defining_module.rs:19:5 |
8faf50e0 | 17 | | |
dfeec247 | 18 | LL | pub type Boo = impl ::std::fmt::Debug; |
f035d41b | 19 | | ---------------------- the expected opaque type |
dfeec247 | 20 | ... |
8faf50e0 | 21 | LL | fn bomp() -> boo::Boo { |
1b1a35ee | 22 | | -------- expected `impl Debug` because of return type |
532ac7d7 | 23 | LL | "" |
60c5eb7d | 24 | | ^^ expected opaque type, found `&str` |
8faf50e0 | 25 | | |
1b1a35ee | 26 | = note: expected opaque type `impl Debug` |
60c5eb7d | 27 | found reference `&'static str` |
8faf50e0 XL |
28 | |
29 | error: aborting due to 2 previous errors | |
30 | ||
31 | For more information about this error, try `rustc --explain E0308`. |