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

Commit 24bd796

Browse files
authored
Merge pull request #1279 from matthiaskrgr/20220602
add 2 ices
2 parents 63f4f5c + 4fd9e1c commit 24bd796

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

ices/97625.sh

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/sh
2+
3+
rustc -Cinstrument-coverage - << EOF
4+
5+
#![feature(adt_const_params)]
6+
#![allow(incomplete_features)]
7+
8+
fn eval<const N: f32>() -> f32 {
9+
N
10+
}
11+
12+
fn main() {
13+
println!("{}", eval::<0.5>());
14+
}
15+
16+
EOF

ices/97634.rs

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
pub enum Register<const N: u16> {
2+
Field0 = 40,
3+
Field1,
4+
}
5+
6+
fn main() {
7+
let _b = Register::<0>::Field1 as u16;
8+
}

0 commit comments

Comments
 (0)