summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/new-solver/structural-resolve-field.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/traits/new-solver/structural-resolve-field.rs')
-rw-r--r--tests/ui/traits/new-solver/structural-resolve-field.rs13
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/ui/traits/new-solver/structural-resolve-field.rs b/tests/ui/traits/new-solver/structural-resolve-field.rs
deleted file mode 100644
index 01899c9ad..000000000
--- a/tests/ui/traits/new-solver/structural-resolve-field.rs
+++ /dev/null
@@ -1,13 +0,0 @@
-// compile-flags: -Ztrait-solver=next
-// check-pass
-
-#[derive(Default)]
-struct Foo {
- x: i32,
-}
-
-fn main() {
- let mut xs = <[Foo; 1]>::default();
- xs[0].x = 1;
- (&mut xs[0]).x = 2;
-}