Skip to content

Commit 4acef9a

Browse files
committed
Add unit test for issue 78132
1 parent 468192a commit 4acef9a

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// check-pass
2+
3+
#![feature(inline_const)]
4+
#![allow(incomplete_features)]
5+
6+
pub fn todo<T>() -> T {
7+
const { todo!() }
8+
}
9+
10+
fn main() {
11+
let _: usize = const { 0 };
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// check-pass
2+
3+
#![feature(inline_const)]
4+
#![allow(incomplete_features)]
5+
6+
fn main() {
7+
match 1u64 {
8+
0 => (),
9+
const { 0 + 1 } => (),
10+
const { 2 - 1 } ..= const { u64::MAX } => (),
11+
}
12+
}

0 commit comments

Comments
 (0)