2021-06-18 14:13:12 -05:00
|
|
|
// 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(""); }
|
2021-12-10 20:20:41 -06:00
|
|
|
//~^ ERROR the size for values of type
|
2021-06-18 14:13:12 -05:00
|
|
|
|
|
|
|
pub fn main() {
|
|
|
|
}
|