Skip to content

Commit

Permalink
add 2 more ICEs
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskrgr committed Jun 11, 2022
1 parent 099be2a commit d07aea2
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
20 changes: 20 additions & 0 deletions ices/97006.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

cat > out.rs <<'EOF'
#![allow(unused)]
macro_rules! m {
($attr_path: path) => {
#[$attr_path]
fn f() {}
}
}
m!(inline<u8>); //~ ERROR: unexpected generic arguments in path
fn main() {}
EOF

rustc -Zunpretty=hir out.rs
21 changes: 21 additions & 0 deletions ices/97986.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

cat > out.rs <<'EOF'
pub mod m {
pub struct S;
}
pub trait F {
fn f() -> m::S;
}
impl<T> F for T {
fn f() -> m::S {
m::S
}
}
EOF

rustdoc --edition=2021 -Z unstable-options --output-format json out.rs

0 comments on commit d07aea2

Please sign in to comment.