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

Commit 96c3dd4

Browse files
github-actions[bot]rustbotJohnTitor
authored
ices/43408.rs: fixed with errors (#571)
Co-authored-by: rustbot <rustbot@users.noreply.github.com> Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
1 parent 48b35b2 commit 96c3dd4

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

fixed/43408.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#![feature(const_fn)]
2+
pub const fn sof<T:?Sized>() -> usize {
3+
10
4+
}
5+
6+
pub fn to_byte_array<T>() -> [u8; sof::<T>()] {
7+
panic!()
8+
}
9+
10+
fn main() {}

ices/43408.rs

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)