|
| 1 | +error[E0412]: cannot find type `Missing` in this scope |
| 2 | + --> $DIR/issue-118950-root-region.rs:18:55 |
| 3 | + | |
| 4 | +LL | impl<T> Overlap<for<'a> fn(Assoc<'a, T>)> for T where Missing: Overlap<T> {} |
| 5 | + | ^^^^^^^ not found in this scope |
| 6 | + |
| 7 | +warning: the feature `lazy_type_alias` is incomplete and may not be safe to use and/or cause compiler crashes |
| 8 | + --> $DIR/issue-118950-root-region.rs:5:12 |
| 9 | + | |
| 10 | +LL | #![feature(lazy_type_alias)] |
| 11 | + | ^^^^^^^^^^^^^^^ |
| 12 | + | |
| 13 | + = note: see issue #112792 <https://github.com/rust-lang/rust/issues/112792> for more information |
| 14 | + = note: `#[warn(incomplete_features)]` on by default |
| 15 | + |
| 16 | +WARN rustc_infer::infer::generalize may incompletely handle alias type: Alias(Weak, AliasTy { args: [ReBound(DebruijnIndex(0), BoundRegion { var: 0, kind: BrNamed(DefId(0:15 ~ issue_118950_root_region[d54f]::{impl#1}::'a), 'a) }), ?1t], def_id: DefId(0:8 ~ issue_118950_root_region[d54f]::Assoc) }) |
| 17 | +WARN rustc_infer::infer::generalize may incompletely handle alias type: Alias(Weak, AliasTy { args: [RePlaceholder(!1_BoundRegion { var: 0, kind: BrNamed(DefId(0:15 ~ issue_118950_root_region[d54f]::{impl#1}::'a), 'a) }), ?1t], def_id: DefId(0:8 ~ issue_118950_root_region[d54f]::Assoc) }) |
| 18 | +WARN rustc_infer::infer::generalize may incompletely handle alias type: Alias(Weak, AliasTy { args: [ReBound(DebruijnIndex(0), BoundRegion { var: 0, kind: BrNamed(DefId(0:15 ~ issue_118950_root_region[d54f]::{impl#1}::'a), 'a) }), ?1t], def_id: DefId(0:8 ~ issue_118950_root_region[d54f]::Assoc) }) |
| 19 | +WARN rustc_infer::infer::generalize may incompletely handle alias type: Alias(Weak, AliasTy { args: [RePlaceholder(!1_BoundRegion { var: 0, kind: BrNamed(DefId(0:15 ~ issue_118950_root_region[d54f]::{impl#1}::'a), 'a) }), ?1t], def_id: DefId(0:8 ~ issue_118950_root_region[d54f]::Assoc) }) |
| 20 | +WARN rustc_infer::infer::generalize may incompletely handle alias type: Alias(Weak, AliasTy { args: [ReBound(DebruijnIndex(0), BoundRegion { var: 0, kind: BrNamed(DefId(0:15 ~ issue_118950_root_region[d54f]::{impl#1}::'a), 'a) }), ?1t], def_id: DefId(0:8 ~ issue_118950_root_region[d54f]::Assoc) }) |
| 21 | +WARN rustc_infer::infer::generalize may incompletely handle alias type: Alias(Weak, AliasTy { args: [RePlaceholder(!1_BoundRegion { var: 0, kind: BrNamed(DefId(0:15 ~ issue_118950_root_region[d54f]::{impl#1}::'a), 'a) }), ?1t], def_id: DefId(0:8 ~ issue_118950_root_region[d54f]::Assoc) }) |
| 22 | +WARN rustc_infer::infer::generalize may incompletely handle alias type: Alias(Weak, AliasTy { args: [ReBound(DebruijnIndex(0), BoundRegion { var: 0, kind: BrNamed(DefId(0:15 ~ issue_118950_root_region[d54f]::{impl#1}::'a), 'a) }), ?1t], def_id: DefId(0:8 ~ issue_118950_root_region[d54f]::Assoc) }) |
| 23 | +WARN rustc_infer::infer::generalize may incompletely handle alias type: Alias(Weak, AliasTy { args: [RePlaceholder(!1_BoundRegion { var: 0, kind: BrNamed(DefId(0:15 ~ issue_118950_root_region[d54f]::{impl#1}::'a), 'a) }), ?1t], def_id: DefId(0:8 ~ issue_118950_root_region[d54f]::Assoc) }) |
| 24 | +error[E0119]: conflicting implementations of trait `Overlap<fn(_)>` for type `fn(_)` |
| 25 | + --> $DIR/issue-118950-root-region.rs:18:1 |
| 26 | + | |
| 27 | +LL | impl<T> Overlap<T> for T {} |
| 28 | + | ------------------------ first implementation here |
| 29 | +LL | |
| 30 | +LL | impl<T> Overlap<for<'a> fn(Assoc<'a, T>)> for T where Missing: Overlap<T> {} |
| 31 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `fn(_)` |
| 32 | + |
| 33 | +error: aborting due to 2 previous errors; 1 warning emitted |
| 34 | + |
| 35 | +Some errors have detailed explanations: E0119, E0412. |
| 36 | +For more information about an error, try `rustc --explain E0119`. |
0 commit comments