about summary refs log tree commit diff
path: root/tests/ui/sized/relaxing-default-bound-error-37534.rs
blob: d30e9f92ce9fbfac591e86947907538566b1909b (plain)
1
2
3
4
5
6
7
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