rust/tests/ui/suggestions/issue-85943-no-suggest-unsized-indirection-in-where-clause.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
264 B
Rust
Raw Normal View History

// Regression test for #85943: should not emit suggestions for adding
// indirection to type parameters in where-clauses when suggesting
// adding `?Sized`.
struct A<T>(T) where T: Send;
struct B(A<[u8]>);
//~^ ERROR the size for values of type
pub fn main() {
}