rust/tests/ui/generic-const-items/def-site-predicates-wf.rs
2025-05-28 15:19:32 +02:00

10 lines
288 B
Rust

//! Ensure that we check the predicates for well-formedness at the definition site.
#![feature(generic_const_items)]
#![expect(incomplete_features)]
const _: () = ()
where
Vec<str>: Sized; //~ ERROR the size for values of type `str` cannot be known at compilation time
fn main() {}