Sign in
◑
Theme
rust
/
rust-lang
/
rust
/
refs/heads/beta
/
.
/
tests
/
ui
/
lint
/
dead-code
/
const-fn-used-in-impl-header.rs
blob: 9de8bc7dd98a8692a20caf4e70a060e3404c91ca [
file
] [
edit
]
//! Regression test for <https://github.com/rust-lang/rust/issues/133797>
//@ check-pass
#![
deny
(
dead_code
)]
const
fn
test
()
->
usize
{
0
}
trait
Test
{}
impl
Test
for
[
u8
;
test
()]
{}
fn
test2
<
T
:
Test
>()
{}
fn
main
()
{
test2
::<[
u8
;
0
]>();
}