fake the feature-gate-linker-flavor compile fail test

as there's no way to generate a `#![feature(linker_flavor)]` error
This commit is contained in:
Jorge Aparicio 2017-04-07 21:47:58 -05:00
parent e280515499
commit f76a3036ef

View File

@ -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() {}