File tree 3 files changed +79
-0
lines changed
3 files changed +79
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ rustc --edition=2021 -Cincremental=93470 -Zincremental-verify-ich=yes - << EOF
4
+
5
+ #[derive(PartialEq, Eq)]
6
+ pub struct Key {
7
+ path: &'static str,
8
+ }
9
+
10
+ pub const CONST_A: Key = Key {
11
+ path: "time_zone/formats@1",
12
+ };
13
+
14
+ pub const CONST_B: Key = Key {
15
+ path: "time_zone/formats@1",
16
+ };
17
+
18
+ fn foo(key: Key) -> Result<(), &'static str> {
19
+ match key {
20
+ CONST_B => Ok(()),
21
+ _ => Err(""),
22
+ }
23
+ }
24
+
25
+ fn bar(key: Key) -> Result<(), &'static str> {
26
+ match key {
27
+ CONST_A => Ok(()),
28
+ _ => Err(""),
29
+ }
30
+ }
31
+
32
+ pub fn main() {}
33
+
34
+ EOF
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ rustc --edition=2021 - << EOF
4
+
5
+ macro_rules! m {
6
+ () => {
7
+ macro_rules! foo {
8
+ () => {
9
+
10
+ }
11
+ }
12
+ use foo as bar;
13
+ }
14
+ }
15
+
16
+ m!{}
17
+
18
+ use bar as baz;
19
+
20
+ baz!{}
21
+
22
+ pub fn main() {}
23
+
24
+ EOF
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ rustc --edition=2021 - << EOF
4
+
5
+ macro_rules! foo {
6
+ () => {};
7
+ }
8
+
9
+ macro_rules! m {
10
+ () => {
11
+ use foo as bar;
12
+ };
13
+ }
14
+
15
+ m! {}
16
+
17
+ use bar as baz;
18
+
19
+ baz! {}
20
+
21
+ EOF
You can’t perform that action at this time.
0 commit comments