]> git.proxmox.com Git - rustc.git/blame - src/test/ui/type-alias-impl-trait/no_revealing_outside_defining_module.stderr
New upstream version 1.48.0~beta.8+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 |
dfeec247 4LL | pub type Boo = impl ::std::fmt::Debug;
f035d41b 5 | ---------------------- the found opaque type
dfeec247 6...
532ac7d7 7LL | let _: &str = bomp();
60c5eb7d
XL
8 | ---- ^^^^^^ expected `&str`, found opaque type
9 | |
10 | expected due to this
8faf50e0 11 |
60c5eb7d 12 = note: expected reference `&str`
1b1a35ee 13 found opaque type `impl Debug`
8faf50e0
XL
14
15error[E0308]: mismatched types
0731742a 16 --> $DIR/no_revealing_outside_defining_module.rs:19:5
8faf50e0 17 |
dfeec247 18LL | pub type Boo = impl ::std::fmt::Debug;
f035d41b 19 | ---------------------- the expected opaque type
dfeec247 20...
8faf50e0 21LL | fn bomp() -> boo::Boo {
1b1a35ee 22 | -------- expected `impl Debug` because of return type
532ac7d7 23LL | ""
60c5eb7d 24 | ^^ expected opaque type, found `&str`
8faf50e0 25 |
1b1a35ee 26 = note: expected opaque type `impl Debug`
60c5eb7d 27 found reference `&'static str`
8faf50e0
XL
28
29error: aborting due to 2 previous errors
30
31For more information about this error, try `rustc --explain E0308`.