diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-11-14 09:31:03 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-11-22 01:52:04 +0000 |
| commit | fa8c53bae4592395565fc3c06cdcc093fc4b0dbe (patch) | |
| tree | 37136941ac391831a41f3132b7c3fdd40e17f35e /src/test | |
| parent | 808a7ca805e25fd60bfbdfce5780a05e98b5f1b1 (diff) | |
| download | rust-fa8c53bae4592395565fc3c06cdcc093fc4b0dbe.tar.gz rust-fa8c53bae4592395565fc3c06cdcc093fc4b0dbe.zip | |
Start warning cycle.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/compile-fail/directory_ownership/backcompat-warnings.rs | 21 | ||||
| -rw-r--r-- | src/test/compile-fail/directory_ownership/mod_file_not_owning_aux3.rs | 13 |
2 files changed, 34 insertions, 0 deletions
diff --git a/src/test/compile-fail/directory_ownership/backcompat-warnings.rs b/src/test/compile-fail/directory_ownership/backcompat-warnings.rs new file mode 100644 index 00000000000..75e3426a399 --- /dev/null +++ b/src/test/compile-fail/directory_ownership/backcompat-warnings.rs @@ -0,0 +1,21 @@ +// Copyright 2016 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 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +// error-pattern: cannot declare a new module at this location +// error-pattern: will become a hard error +// error-pattern: compilation successful + +#![feature(rustc_attrs)] + +#[path="mod_file_not_owning_aux3.rs"] +mod foo; + +#[rustc_error] +fn main() {} diff --git a/src/test/compile-fail/directory_ownership/mod_file_not_owning_aux3.rs b/src/test/compile-fail/directory_ownership/mod_file_not_owning_aux3.rs new file mode 100644 index 00000000000..3a164fd55d9 --- /dev/null +++ b/src/test/compile-fail/directory_ownership/mod_file_not_owning_aux3.rs @@ -0,0 +1,13 @@ +// Copyright 2016 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 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +// ignore-test this is not a test + +mod mod_file_not_owning_aux2; |
