summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-85945-check-where-clause-before-suggesting-unsized.rs
blob: 1a36f6e8e7ff9f4e4829281e49ece4f85e058e3c (plain)
1
2
3
4
5
6
7
8
// Regression test for #85945: Don't suggest `?Sized` bound if an explicit
// `Sized` bound is already in a `where` clause.
fn foo<T>(_: &T) where T: Sized {}
fn bar() { foo(""); }
//~^ ERROR the size for values of type

pub fn main() {
}