]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/different_defining_uses_never_type.full_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 / different_defining_uses_never_type.full_tait.stderr
1 warning: the feature `type_alias_impl_trait` is incomplete and may not be safe to use and/or cause compiler crashes
2   --> $DIR/different_defining_uses_never_type.rs:3:32
3    |
4 LL | #![cfg_attr(full_tait, feature(type_alias_impl_trait))]
5    |                                ^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `#[warn(incomplete_features)]` on by default
8    = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
9
10 error: concrete type differs from previous defining opaque type use
11   --> $DIR/different_defining_uses_never_type.rs:15:1
12    |
13 LL | fn bar() -> Foo {
14    | ^^^^^^^^^^^^^^^ expected `&'static str`, got `()`
15    |
16 note: previous use here
17   --> $DIR/different_defining_uses_never_type.rs:11:1
18    |
19 LL | fn foo() -> Foo {
20    | ^^^^^^^^^^^^^^^
21
22 error: concrete type differs from previous defining opaque type use
23   --> $DIR/different_defining_uses_never_type.rs:19:1
24    |
25 LL | fn boo() -> Foo {
26    | ^^^^^^^^^^^^^^^ expected `&'static str`, got `()`
27    |
28 note: previous use here
29   --> $DIR/different_defining_uses_never_type.rs:11:1
30    |
31 LL | fn foo() -> Foo {
32    | ^^^^^^^^^^^^^^^
33
34 error: aborting due to 2 previous errors; 1 warning emitted
35