Files
rust/tests/ui/sized/relaxing-default-bound-error-37534.rs

8 lines
203 B
Rust
Raw Normal View History

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