]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/issue-85945-check-where-clause-before-suggesting-unsized.rs
Rollup merge of #90420 - GuillaumeGomez:rustdoc-internals-feature, r=camelid
[rust.git] / src / test / 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 }