Skip to content

Commit a8be4b2

Browse files
committed
1 parent a731ef9 commit a8be4b2

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

ices/88599.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
rustc --crate-type lib - << EOF
4+
5+
pub trait First {
6+
const CONST: bool;
7+
}
8+
pub trait Second {}
9+
10+
impl<'a> First for dyn Second where &'a Self: First {
11+
const CONST: bool = <&Self>::CONST;
12+
}
13+
14+
pub trait Foo {
15+
const CONST: bool;
16+
}
17+
18+
impl <'a> Foo for () where &'a Self: Foo {
19+
const CONST: bool = <&Self>::CONST;
20+
}
21+
22+
EOF

0 commit comments

Comments
 (0)