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