]> git.lizzy.rs Git - rust.git/blob - src/test/ui/existential_types/no_revealing_outside_defining_module.stderr
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / existential_types / no_revealing_outside_defining_module.stderr
1 error[E0308]: mismatched types
2   --> $DIR/no_revealing_outside_defining_module.rs:15:19
3    |
4 LL |     let _: &str = bomp(); //~ ERROR mismatched types
5    |                   ^^^^^^ expected &str, found opaque type
6    |
7    = note: expected type `&str`
8               found type `Boo`
9
10 error[E0308]: mismatched types
11   --> $DIR/no_revealing_outside_defining_module.rs:19:5
12    |
13 LL | fn bomp() -> boo::Boo {
14    |              -------- expected `Boo` because of return type
15 LL |     "" //~ ERROR mismatched types
16    |     ^^ expected opaque type, found reference
17    |
18    = note: expected type `Boo`
19               found type `&'static str`
20
21 error: aborting due to 2 previous errors
22
23 For more information about this error, try `rustc --explain E0308`.