explain why we have a fake cfail test
This commit is contained in:
parent
251d9be429
commit
e192fb3d89
@ -8,6 +8,11 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// 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]
|
#[used]
|
||||||
fn foo() {}
|
fn foo() {}
|
||||||
//~^^ ERROR the `#[used]` attribute is an experimental feature
|
//~^^ ERROR the `#[used]` attribute is an experimental feature
|
||||||
|
Loading…
Reference in New Issue
Block a user