Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit 5d78a92

Browse files
authored
Merge pull request #1302 from matthiaskrgr/20220611
2 parents 099be2a + d07aea2 commit 5d78a92

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

ices/97006.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
cat > out.rs <<'EOF'
4+
5+
#![allow(unused)]
6+
7+
macro_rules! m {
8+
($attr_path: path) => {
9+
#[$attr_path]
10+
fn f() {}
11+
}
12+
}
13+
14+
m!(inline<u8>); //~ ERROR: unexpected generic arguments in path
15+
16+
fn main() {}
17+
18+
EOF
19+
20+
rustc -Zunpretty=hir out.rs

ices/97986.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
cat > out.rs <<'EOF'
4+
5+
pub mod m {
6+
pub struct S;
7+
}
8+
9+
pub trait F {
10+
fn f() -> m::S;
11+
}
12+
13+
impl<T> F for T {
14+
fn f() -> m::S {
15+
m::S
16+
}
17+
}
18+
19+
EOF
20+
21+
rustdoc --edition=2021 -Z unstable-options --output-format json out.rs

0 commit comments

Comments
 (0)