diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-06-29 09:41:45 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-07-06 03:26:57 +0000 |
| commit | ba59d42f24e68cae82167372d96e065dd94f36bc (patch) | |
| tree | 3f4bf2fe4098dc64b9ab698219b336cb1128a5e5 | |
| parent | db57e67452c00a18ac68845717c5c20e3db77888 (diff) | |
| download | rust-ba59d42f24e68cae82167372d96e065dd94f36bc.tar.gz rust-ba59d42f24e68cae82167372d96e065dd94f36bc.zip | |
Add regression test
| -rw-r--r-- | src/test/compile-fail/cfg_attr_path.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/compile-fail/cfg_attr_path.rs b/src/test/compile-fail/cfg_attr_path.rs new file mode 100644 index 00000000000..502768cc44e --- /dev/null +++ b/src/test/compile-fail/cfg_attr_path.rs @@ -0,0 +1,12 @@ +// 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. + +#[cfg_attr(all(), path = "nonexistent_file.rs")] mod foo; +//~^ ERROR nonexistent_file.rs |
