From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- src/test/ui/suggestions/slice-issue-87994.rs | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 src/test/ui/suggestions/slice-issue-87994.rs (limited to 'src/test/ui/suggestions/slice-issue-87994.rs') diff --git a/src/test/ui/suggestions/slice-issue-87994.rs b/src/test/ui/suggestions/slice-issue-87994.rs deleted file mode 100644 index ecb7f54ea..000000000 --- a/src/test/ui/suggestions/slice-issue-87994.rs +++ /dev/null @@ -1,16 +0,0 @@ -fn main() { - let v = vec![1i32, 2, 3]; - for _ in v[1..] { - //~^ ERROR [i32]` is not an iterator [E0277] - //~^^ ERROR known at compilation time - } - struct K { - n: i32, - } - let mut v2 = vec![K { n: 1 }, K { n: 1 }, K { n: 1 }]; - for i2 in v2[1..] { - //~^ ERROR [K]` is not an iterator [E0277] - //~^^ ERROR known at compilation time - i2.n = 2; - } -} -- cgit v1.2.3