mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
9 lines
239 B
Rust
9 lines
239 B
Rust
// 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() {
|
|
}
|