]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-5883.rs
Add 'src/tools/clippy/' from commit 'd2708873ef711ec8ab45df1e984ecf24a96cd369'
[rust.git] / src / test / ui / issues / issue-5883.rs
1 trait A {}
2
3 struct Struct {
4     r: dyn A + 'static
5 }
6
7 fn new_struct(r: dyn A + 'static)
8     -> Struct { //~^ ERROR the size for values of type
9     //~^ ERROR the size for values of type
10     Struct { r: r }
11 }
12
13 fn main() {}