explain why we have a fake cfail test
This commit is contained in:
parent
251d9be429
commit
e192fb3d89
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue