Add test for issue-39618
This commit is contained in:
parent
19288ddfd6
commit
6351bfd182
24
src/test/ui/specialization/issue-39618.rs
Normal file
24
src/test/ui/specialization/issue-39618.rs
Normal file
@ -0,0 +1,24 @@
|
||||
// Regression test for #39618, shouldn't crash.
|
||||
// check-pass
|
||||
|
||||
#![feature(specialization)]
|
||||
|
||||
trait Foo {
|
||||
fn foo(&self);
|
||||
}
|
||||
|
||||
trait Bar {
|
||||
fn bar(&self);
|
||||
}
|
||||
|
||||
impl<T> Bar for T where T: Foo {
|
||||
fn bar(&self) {}
|
||||
}
|
||||
|
||||
impl<T> Foo for T where T: Bar {
|
||||
fn foo(&self) {}
|
||||
}
|
||||
|
||||
impl Foo for u64 {}
|
||||
|
||||
fn main() {}
|
Loading…
x
Reference in New Issue
Block a user