rust/tests/ui/sized/relaxing-default-bound-error-37534.rs
2025-07-24 17:01:44 -04:00

8 lines
203 B
Rust

struct Foo<T: ?Hash> {}
//~^ ERROR expected trait, found derive macro `Hash`
//~| ERROR bound modifier `?` can only be applied to `Sized`
fn main() {}
// https://github.com/rust-lang/rust/issues/37534