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

Commit 4950e08

Browse files
authored
Merge pull request #1244 from matthiaskrgr/1105
2 parents ec72193 + 246aeda commit 4950e08

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

ices/96818.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
macro_rules! values {
2+
($($token:ident($value:literal) $(as $inner:ty)? => $attr:meta,)*) => {
3+
#[derive(Debug)]
4+
pub enum TokenKind {
5+
$(
6+
#[$attr]
7+
$token $($inner)? = $value,
8+
)*
9+
}
10+
};
11+
}
12+
13+
values!(STRING(1) as (String) => cfg(test),);
14+
15+
pub fn main() {}

ices/96847.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
fn main() {
2+
for _ in [] {
3+
#![doc=""]
4+
}
5+
}

ices/96954.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
trait Tr<'a> {
2+
type Assoc;
3+
}
4+
fn test_argument_position(x: impl for<'a> Tr<'a, Assoc = impl Copy + 'a>) {}
5+
fn main() {}

0 commit comments

Comments
 (0)