From f55425dfcd2a156ff2f17e6dd4f9dcfaee9f5905 Mon Sep 17 00:00:00 2001 From: Michael Woerister Date: Thu, 19 Oct 2017 14:32:39 +0200 Subject: incr.comp.: Implement query diagnostic persistence. --- src/test/incremental/warnings-reemitted.rs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/test/incremental/warnings-reemitted.rs (limited to 'src/test/incremental') diff --git a/src/test/incremental/warnings-reemitted.rs b/src/test/incremental/warnings-reemitted.rs new file mode 100644 index 00000000000..bf66ac7829c --- /dev/null +++ b/src/test/incremental/warnings-reemitted.rs @@ -0,0 +1,19 @@ +// Copyright 2017 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +// revisions: cfail1 cfail2 cfail3 +// compile-flags: -Coverflow-checks=on +// must-compile-successfully + +#![allow(warnings)] + +fn main() { + 255u8 + 1; //~ WARNING this expression will panic at run-time +} -- cgit 1.4.1-3-g733a5