diff options
Diffstat (limited to 'src/test/run-pass/for-loop-while/for-loop-has-unit-body.rs')
| -rw-r--r-- | src/test/run-pass/for-loop-while/for-loop-has-unit-body.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/run-pass/for-loop-while/for-loop-has-unit-body.rs b/src/test/run-pass/for-loop-while/for-loop-has-unit-body.rs index 009c59f2fa4..38c34d2dc2e 100644 --- a/src/test/run-pass/for-loop-while/for-loop-has-unit-body.rs +++ b/src/test/run-pass/for-loop-while/for-loop-has-unit-body.rs @@ -2,6 +2,7 @@ fn main() { // Check that the tail statement in the body unifies with something for _ in 0..3 { + #[allow(deprecated)] unsafe { std::mem::uninitialized() } } |
