diff options
Diffstat (limited to 'tests/ui/traits/new-solver/upcast-wrong-substs.rs')
-rw-r--r-- | tests/ui/traits/new-solver/upcast-wrong-substs.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/ui/traits/new-solver/upcast-wrong-substs.rs b/tests/ui/traits/new-solver/upcast-wrong-substs.rs deleted file mode 100644 index f2d04d932..000000000 --- a/tests/ui/traits/new-solver/upcast-wrong-substs.rs +++ /dev/null @@ -1,13 +0,0 @@ -// compile-flags: -Ztrait-solver=next - -#![feature(trait_upcasting)] - -trait Foo: Bar<i32> + Bar<u32> {} - -trait Bar<T> {} - -fn main() { - let x: &dyn Foo = todo!(); - let y: &dyn Bar<usize> = x; - //~^ ERROR mismatched types -} |