We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffa7094 commit 6749794Copy full SHA for 6749794
tests/ui/internal/unstable-feature.rs
@@ -0,0 +1,7 @@
1
+#![feature(impl_stability)]
2
+
3
+#[allow_unstable_feature] //~ ERROR cannot find attribute `allow_unstable_feature` in this scope
4
+//~^ ERROR `allow_unstable_feature` expects a list of feature names
5
+fn main() {
6
7
+}
tests/ui/internal/unstable-feature.stderr
@@ -0,0 +1,14 @@
+error: cannot find attribute `allow_unstable_feature` in this scope
+ --> $DIR/unstable-feature.rs:3:3
+ |
+LL | #[allow_unstable_feature]
+ | ^^^^^^^^^^^^^^^^^^^^^^
+error: `allow_unstable_feature` expects a list of feature names
8
+ --> $DIR/unstable-feature.rs:3:1
9
10
11
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
12
13
+error: aborting due to 2 previous errors
14
0 commit comments