Skip to content

Commit e192fb3

Browse files
author
Jorge Aparicio
committed
explain why we have a fake cfail test
1 parent 251d9be commit e192fb3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

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

11+
// This is a fake compile fail test as there's no way to generate a
12+
// `#![feature(linker_flavor)]` error. The only reason we have a `linker_flavor`
13+
// feature gate is to be able to document `-Z linker-flavor` in the unstable
14+
// book
15+
1116
#[used]
1217
fn foo() {}
1318
//~^^ ERROR the `#[used]` attribute is an experimental feature

0 commit comments

Comments
 (0)