]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/issue-85945-check-where-clause-before-suggesting-unsized.rs
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / suggestions / issue-85945-check-where-clause-before-suggesting-unsized.rs
1 // Regression test for #85945: Don't suggest `?Sized` bound if an explicit
2 // `Sized` bound is already in a `where` clause.
3 fn foo<T>(_: &T) where T: Sized {}
4 fn bar() { foo(""); }
5 //~^ ERROR the size for values of type
6
7 pub fn main() {
8 }