Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace parent substs of associated types with inference vars in borr…
…ow check
- Loading branch information
Showing
6 changed files
with
44 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 0 additions & 33 deletions
33
src/test/ui/type-alias-impl-trait/associated-type-lifetime-ice.rs
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
src/test/ui/type-alias-impl-trait/associated-type-lifetime-ice.stderr
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// check-pass | ||
|
||
#![feature(min_type_alias_impl_trait)] | ||
#![feature(type_alias_impl_trait)] | ||
//~^ WARNING: the feature `type_alias_impl_trait` is incomplete | ||
|
||
pub trait AssociatedImpl { | ||
type ImplTrait; | ||
|
||
fn f() -> Self::ImplTrait; | ||
} | ||
|
||
struct S<T>(T); | ||
|
||
trait Associated { | ||
type A; | ||
} | ||
|
||
impl<'a, T: Associated<A = &'a ()>> AssociatedImpl for S<T> { | ||
type ImplTrait = impl core::fmt::Debug; | ||
|
||
fn f() -> Self::ImplTrait { | ||
() | ||
} | ||
} | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
warning: the feature `type_alias_impl_trait` is incomplete and may not be safe to use and/or cause compiler crashes | ||
--> $DIR/issue-78450.rs:4:12 | ||
| | ||
LL | #![feature(type_alias_impl_trait)] | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: `#[warn(incomplete_features)]` on by default | ||
= note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information | ||
|
||
warning: 1 warning emitted | ||
|