Rollup merge of #133558 - compiler-errors:structurally-resolve-probe-adt, r=lcnr
Structurally resolve in `probe_adt` fixes #132320 r? lcnr
This commit is contained in:
commit
49df325cb4
3 changed files with 20 additions and 16 deletions
|
|
@ -0,0 +1,15 @@
|
|||
//@ check-pass
|
||||
//@ compile-flags: -Znext-solver
|
||||
|
||||
trait Mirror {
|
||||
type Assoc;
|
||||
}
|
||||
impl<T> Mirror for T {
|
||||
type Assoc = T;
|
||||
}
|
||||
|
||||
type Foo<T> = <Option<T> as Mirror>::Assoc;
|
||||
|
||||
fn main() {
|
||||
let x = Foo::<i32>::None;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue