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 e936289 commit 1f7ad12Copy full SHA for 1f7ad12
tests/ui/feature-gates/version_check.rs
@@ -0,0 +1,9 @@
1
+//@ run-pass
2
+
3
+fn supports_feature(_: &str) -> Option<bool> {
4
+ Some(true)
5
+}
6
7
+fn main() {
8
+ assert_ne!(supports_feature("foobar"), None);
9
0 commit comments