diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-15756.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-15756.rs b/src/test/ui/issues/issue-15756.rs new file mode 100644 index 000000000..e0861dee6 --- /dev/null +++ b/src/test/ui/issues/issue-15756.rs @@ -0,0 +1,14 @@ +use std::slice::Chunks; +use std::slice::ChunksMut; + +fn dft_iter<'a, T>(arg1: Chunks<'a,T>, arg2: ChunksMut<'a,T>) +{ + for + &mut something + //~^ ERROR the size for values of type + in arg2 + { + } +} + +fn main() {} |