diff options
Diffstat (limited to 'tests/ui/traits/new-solver/opportunistic-region-resolve.rs')
-rw-r--r-- | tests/ui/traits/new-solver/opportunistic-region-resolve.rs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/ui/traits/new-solver/opportunistic-region-resolve.rs b/tests/ui/traits/new-solver/opportunistic-region-resolve.rs deleted file mode 100644 index 2610789cd..000000000 --- a/tests/ui/traits/new-solver/opportunistic-region-resolve.rs +++ /dev/null @@ -1,19 +0,0 @@ -// compile-flags: -Ztrait-solver=next -// check-pass - -#![feature(rustc_attrs)] - -#[rustc_coinductive] -trait Trait {} - -#[rustc_coinductive] -trait Indirect {} -impl<T: Trait + ?Sized> Indirect for T {} - -impl<'a> Trait for &'a () where &'a (): Indirect {} - -fn impls_trait<T: Trait>() {} - -fn main() { - impls_trait::<&'static ()>(); -} |