mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +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() {
|
|
}
|