Skip to content

Commit f76a303

Browse files
author
Jorge Aparicio
committed
fake the feature-gate-linker-flavor compile fail test
as there's no way to generate a `#![feature(linker_flavor)]` error
1 parent e280515 commit f76a303

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/compile-fail/feature-gate-linker-flavor.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![linker_flavor] //~ ERROR the `#[linker_flavor]` attribute is
11+
#[used]
12+
fn foo() {}
13+
//~^^ ERROR the `#[used]` attribute is an experimental feature
1214

1315
fn main() {}

0 commit comments

Comments
 (0)