Skip to content

Commit

Permalink
explain why we have a fake cfail test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Aparicio committed Apr 10, 2017
1 parent 251d9be commit e192fb3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test/compile-fail/feature-gate-linker-flavor.rs
Expand Up @@ -8,6 +8,11 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// This is a fake compile fail test as there's no way to generate a
// `#![feature(linker_flavor)]` error. The only reason we have a `linker_flavor`
// feature gate is to be able to document `-Z linker-flavor` in the unstable
// book

#[used]
fn foo() {}
//~^^ ERROR the `#[used]` attribute is an experimental feature
Expand Down

0 comments on commit e192fb3

Please sign in to comment.