]> git.proxmox.com Git - rustc.git/blame - src/test/ui/type-alias-impl-trait/no_revealing_outside_defining_module.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / no_revealing_outside_defining_module.stderr
CommitLineData
8faf50e0 1error[E0308]: mismatched types
0731742a 2 --> $DIR/no_revealing_outside_defining_module.rs:15:19
8faf50e0 3 |
532ac7d7 4LL | 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
12error[E0308]: mismatched types
0731742a 13 --> $DIR/no_revealing_outside_defining_module.rs:19:5
8faf50e0
XL
14 |
15LL | fn bomp() -> boo::Boo {
16 | -------- expected `Boo` because of return type
532ac7d7 17LL | ""
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
23error: aborting due to 2 previous errors
24
25For more information about this error, try `rustc --explain E0308`.