1 warning: the feature `type_alias_impl_trait` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/issue-52843-closure-constrain.rs:5:32
4 LL | #![cfg_attr(full_tait, feature(type_alias_impl_trait))]
5 | ^^^^^^^^^^^^^^^^^^^^^
7 = note: `#[warn(incomplete_features)]` on by default
8 = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
10 error: concrete type differs from previous defining opaque type use
11 --> $DIR/issue-52843-closure-constrain.rs:13:16
13 LL | let null = || -> Opaque { 0 };
14 | ^^^^^^^^^^^^^^^^^^ expected `String`, got `i32`
16 note: previous use here
17 --> $DIR/issue-52843-closure-constrain.rs:12:5
19 LL | fn _unused() -> Opaque { String::new() }
20 | ^^^^^^^^^^^^^^^^^^^^^^
22 error: aborting due to previous error; 1 warning emitted