]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/no_revealing_outside_defining_module.stderr
366d6bad37a5f3f5102d479d46f66ce4cd32f7ab
[rust.git] / src / test / ui / type-alias-impl-trait / 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();
5    |                   ^^^^^^ expected &str, found opaque type
6    |
7    = note: expected reference `&str`
8             found opaque 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 |     ""
16    |     ^^ expected opaque type, found reference
17    |
18    = note: expected opaque type `Boo`
19                 found reference `&'static str`
20
21 error: aborting due to 2 previous errors
22
23 For more information about this error, try `rustc --explain E0308`.