]> git.lizzy.rs Git - rust.git/blob - src/test/ui/existential_types/no_revealing_outside_defining_module.stderr
Split monster tests into smaller ones
[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:27:23
3    |
4 LL |         let _: &str = bomp(); //~ ERROR mismatched types
5    |                       ^^^^^^ expected &str, found anonymized 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:31:9
12    |
13 LL |     fn bomp() -> boo::Boo {
14    |                  -------- expected `Boo` because of return type
15 LL |         "" //~ ERROR mismatched types
16    |         ^^ expected anonymized 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`.