]> git.proxmox.com Git - rustc.git/blob - src/test/ui/type-alias-impl-trait/declared_but_not_defined_in_scope.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / declared_but_not_defined_in_scope.stderr
1 error: could not find defining uses
2 --> $DIR/declared_but_not_defined_in_scope.rs:7:20
3 |
4 LL | pub type Boo = impl ::std::fmt::Debug;
5 | ^^^^^^^^^^^^^^^^^^^^^^
6
7 error[E0308]: mismatched types
8 --> $DIR/declared_but_not_defined_in_scope.rs:11:5
9 |
10 LL | pub type Boo = impl ::std::fmt::Debug;
11 | ---------------------- the expected opaque type
12 ...
13 LL | fn bomp() -> boo::Boo {
14 | -------- expected `impl Debug` because of return type
15 LL | ""
16 | ^^ expected opaque type, found `&str`
17 |
18 = note: expected opaque type `impl Debug`
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`.