diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2017-04-07 21:47:58 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2017-04-07 21:47:58 -0500 |
| commit | f76a3036ef2379e26f1a3777ba032f025f22d5cf (patch) | |
| tree | 2b9f30ab3c740943c38cf5a643c9d82207327ed4 | |
| parent | e280515499dd24dcfbfe9455806f328b879b243d (diff) | |
| download | rust-f76a3036ef2379e26f1a3777ba032f025f22d5cf.tar.gz rust-f76a3036ef2379e26f1a3777ba032f025f22d5cf.zip | |
fake the feature-gate-linker-flavor compile fail test
as there's no way to generate a `#![feature(linker_flavor)]` error
| -rw-r--r-- | src/test/compile-fail/feature-gate-linker-flavor.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/compile-fail/feature-gate-linker-flavor.rs b/src/test/compile-fail/feature-gate-linker-flavor.rs index 099d488376e..68679d7dac8 100644 --- a/src/test/compile-fail/feature-gate-linker-flavor.rs +++ b/src/test/compile-fail/feature-gate-linker-flavor.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![linker_flavor] //~ ERROR the `#[linker_flavor]` attribute is +#[used] +fn foo() {} +//~^^ ERROR the `#[used]` attribute is an experimental feature fn main() {} |
