summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const-blocks/nll-fail.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/consts/const-blocks/nll-fail.rs')
-rw-r--r--src/test/ui/consts/const-blocks/nll-fail.rs22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/test/ui/consts/const-blocks/nll-fail.rs b/src/test/ui/consts/const-blocks/nll-fail.rs
deleted file mode 100644
index fddbfbb9d..000000000
--- a/src/test/ui/consts/const-blocks/nll-fail.rs
+++ /dev/null
@@ -1,22 +0,0 @@
-#![allow(warnings)]
-
-// Some type that is not copyable.
-struct Bar;
-
-mod non_constants {
- use Bar;
-
- fn no_impl_copy_empty_value_multiple_elements() {
- let x = None;
- let arr: [Option<Bar>; 2] = [x; 2];
- //~^ ERROR the trait bound `Bar: Copy` is not satisfied [E0277]
- }
-
- fn no_impl_copy_value_multiple_elements() {
- let x = Some(Bar);
- let arr: [Option<Bar>; 2] = [x; 2];
- //~^ ERROR the trait bound `Bar: Copy` is not satisfied [E0277]
- }
-}
-
-fn main() {}