rust/tests/incremental/const-generics/hash-tyvid-regression-1.rs
2023-01-11 09:32:08 +00:00

17 lines
385 B
Rust

// revisions: cfail
#![feature(generic_const_exprs, adt_const_params)]
#![allow(incomplete_features)]
// regression test for #77650
fn c<T, const N: std::num::NonZeroUsize>()
where
[T; N.get()]: Sized,
{
use std::convert::TryFrom;
<[T; N.get()]>::try_from(())
//~^ error: the trait bound
//~| error: the trait bound
//~| error: mismatched types
}
fn main() {}