]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/declared_but_not_defined_in_scope.min_tait.stderr
Loop over all opaque types instead of looking at just the first one with the same...
[rust.git] / src / test / ui / type-alias-impl-trait / declared_but_not_defined_in_scope.min_tait.stderr
1 error: could not find defining uses
2   --> $DIR/declared_but_not_defined_in_scope.rs:10: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:14: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`.