]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/issue-60407.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 / issue-60407.min_tait.stderr
1 error[E0658]: type alias impl trait is not permitted here
2   --> $DIR/issue-60407.rs:9:39
3    |
4 LL | static mut TEST: Option<Debuggable> = None;
5    |                                       ^^^^
6    |
7    = note: see issue #63065 <https://github.com/rust-lang/rust/issues/63065> for more information
8    = help: add `#![feature(impl_trait_in_bindings)]` to the crate attributes to enable
9
10 error: concrete type differs from previous defining opaque type use
11   --> $DIR/issue-60407.rs:16:1
12    |
13 LL | fn foo() -> Debuggable {
14    | ^^^^^^^^^^^^^^^^^^^^^^ expected `[type error]`, got `u32`
15    |
16 note: previous use here
17   --> $DIR/issue-60407.rs:9:1
18    |
19 LL | static mut TEST: Option<Debuggable> = None;
20    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21
22 error: aborting due to 2 previous errors
23
24 For more information about this error, try `rustc --explain E0658`.