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.
keyword/soup.rs
1 parent 4082d6a commit 8b8a66aCopy full SHA for 8b8a66a
1 file changed
tests/ui/keyword/soup.rs
@@ -0,0 +1,30 @@
1
+//@ edition:2024
2
+//@ run-pass
3
+
4
+#![allow(unused_imports)]
5
+#![allow(missing_abi)]
6
+#![allow(unused_macros)]
7
+#![allow(non_camel_case_types)]
8
+#![allow(unreachable_code)]
9
+#![allow(unused_variables)]
10
+#![allow(dead_code)]
11
+#![allow(unused_must_use)]
12
13
+// all 48 keywords in 300 characters
14
+mod x {
15
+ pub(super) struct X;
16
+ use Ok;
17
+ impl X {
18
+ pub(in crate) async fn x(self: Self, x: &'static &'_ dyn for<> Fn()) where {
19
+ unsafe extern { safe fn x(); }
20
+ macro_rules! x { () => {}; }
21
+ if 'x: loop {
22
+ return match while let true = break 'x false { continue } {
23
+ ref x => { &raw mut x; async { const { enum A {} } }.await as () },
24
+ };
25
+ } { type x = X; } else { move || { trait x { }; union B { x: () } }; }
26
+ }
27
28
+}
29
30
+fn main() {}
0 commit comments