From e192fb3d892f04e90a78378bd772cc003304a887 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Mon, 10 Apr 2017 09:55:52 -0500 Subject: [PATCH] explain why we have a fake cfail test --- src/test/compile-fail/feature-gate-linker-flavor.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/test/compile-fail/feature-gate-linker-flavor.rs b/src/test/compile-fail/feature-gate-linker-flavor.rs index 68679d7dac89..955ec39cda1e 100644 --- a/src/test/compile-fail/feature-gate-linker-flavor.rs +++ b/src/test/compile-fail/feature-gate-linker-flavor.rs @@ -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