]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/removal-of-multiline-trait-bound-in-where-clause.rs
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / suggestions / removal-of-multiline-trait-bound-in-where-clause.rs
1 struct Wrapper<T>(T);
2
3 fn foo<T>(foo: Wrapper<T>)
4 //~^ ERROR the size for values of type `T` cannot be known at compilation time
5 where
6     T
7     :
8     ?
9     Sized
10 {
11     //
12 }
13
14 fn bar<T>(foo: Wrapper<T>)
15 //~^ ERROR the size for values of type `T` cannot be known at compilation time
16 where T: ?Sized
17 {
18     //
19 }
20
21 fn qux<T>(foo: Wrapper<T>)
22 //~^ ERROR the size for values of type `T` cannot be known at compilation time
23 where
24     T: ?Sized
25 {
26     //
27 }
28
29
30 fn main() {}