Skip to content

Commit

Permalink
Merge pull request rust-lang#1279 from matthiaskrgr/20220602
Browse files Browse the repository at this point in the history
add 2 ices
  • Loading branch information
Alexendoo committed Jun 2, 2022
2 parents 63f4f5c + 4fd9e1c commit 24bd796
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ices/97625.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh

rustc -Cinstrument-coverage - << EOF
#![feature(adt_const_params)]
#![allow(incomplete_features)]
fn eval<const N: f32>() -> f32 {
N
}
fn main() {
println!("{}", eval::<0.5>());
}
EOF
8 changes: 8 additions & 0 deletions ices/97634.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
pub enum Register<const N: u16> {
Field0 = 40,
Field1,
}

fn main() {
let _b = Register::<0>::Field1 as u16;
}

0 comments on commit 24bd796

Please sign in to comment.