mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
9 lines
238 B
Rust
9 lines
238 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() {
|
||
|
}
|