From fa8c53bae4592395565fc3c06cdcc093fc4b0dbe Mon Sep 17 00:00:00 2001 From: Jeffrey Seyfried Date: Mon, 14 Nov 2016 09:31:03 +0000 Subject: Start warning cycle. --- .../directory_ownership/backcompat-warnings.rs | 21 +++++++++++++++++++++ .../directory_ownership/mod_file_not_owning_aux3.rs | 13 +++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 src/test/compile-fail/directory_ownership/backcompat-warnings.rs create mode 100644 src/test/compile-fail/directory_ownership/mod_file_not_owning_aux3.rs (limited to 'src/test') 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 or the MIT license +// , 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 or the MIT license +// , 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; -- cgit 1.4.1-3-g733a5