1
Fork 0

Add a regression test and organize tests.

This commit is contained in:
Jeffrey Seyfried 2016-11-05 05:31:35 +00:00
parent 5675d9d280
commit 30ac06fd73
8 changed files with 19 additions and 3 deletions

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// compile-flags: -Z parse-only
// error-pattern: cannot declare a new module at this location
mod mod_file_not_owning_aux1;

View file

@ -10,4 +10,7 @@
// ignore-test this is not a test
mod mod_file_not_owning_aux2;
macro_rules! m {
() => { mod mod_file_not_owning_aux2; }
}
m!();

View file

@ -0,0 +1,15 @@
// 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
// This is not a directory owner since the file name is not "mod.rs".
#[path = "mod_file_not_owning_aux1.rs"]
mod foo;