diff options
Diffstat (limited to 'src/test/ui/specialization/issue-38091.rs')
-rw-r--r-- | src/test/ui/specialization/issue-38091.rs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/test/ui/specialization/issue-38091.rs b/src/test/ui/specialization/issue-38091.rs deleted file mode 100644 index 5b398368a..000000000 --- a/src/test/ui/specialization/issue-38091.rs +++ /dev/null @@ -1,24 +0,0 @@ -#![feature(specialization)] -//~^ WARN the feature `specialization` is incomplete - -trait Iterate<'a> { - type Ty: Valid; - fn iterate(self); -} -impl<'a, T> Iterate<'a> for T -where - T: Check, -{ - default type Ty = (); - //~^ ERROR the trait bound `(): Valid` is not satisfied - default fn iterate(self) {} -} - -trait Check {} -impl<'a, T> Check for T where <T as Iterate<'a>>::Ty: Valid {} - -trait Valid {} - -fn main() { - Iterate::iterate(0); -} |