Skip to content

Commit 3d2d460

Browse files
P-E-Pdkm
authored andcommitted
Add missing test for lang item feature gate
We recently modified all tests with lang items to add the lang feature gate switch but we did not introduce any test to check that a proper error message is printed when this switch is not used. gcc/testsuite/ChangeLog: * rust/compile/lang_feature_gate.rs: New test. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
1 parent b254b77 commit 3d2d460

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#[lang = "sized"] // { dg-error "lang items are subject to change. add .#!.feature.lang_items... to the crate attributes to enable" }
2+
pub trait Sized {}

0 commit comments

Comments
 (0)