]> git.lizzy.rs Git - rust.git/blob - src/test/ui/extern/extern-types-unsized.stderr
Rollup merge of #97317 - GuillaumeGomez:gui-settings-text-click, r=jsha
[rust.git] / src / test / ui / extern / extern-types-unsized.stderr
1 error[E0277]: the size for values of type `A` cannot be known at compilation time
2   --> $DIR/extern-types-unsized.rs:22:20
3    |
4 LL |     assert_sized::<A>();
5    |                    ^ doesn't have a size known at compile-time
6    |
7    = help: the trait `Sized` is not implemented for `A`
8 note: required by a bound in `assert_sized`
9   --> $DIR/extern-types-unsized.rs:19:17
10    |
11 LL | fn assert_sized<T>() {}
12    |                 ^ required by this bound in `assert_sized`
13 help: consider relaxing the implicit `Sized` restriction
14    |
15 LL | fn assert_sized<T: ?Sized>() {}
16    |                  ++++++++
17
18 error[E0277]: the size for values of type `A` cannot be known at compilation time
19   --> $DIR/extern-types-unsized.rs:25:5
20    |
21 LL |     assert_sized::<Foo>();
22    |     ^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
23    |
24    = help: within `Foo`, the trait `Sized` is not implemented for `A`
25 note: required because it appears within the type `Foo`
26   --> $DIR/extern-types-unsized.rs:9:8
27    |
28 LL | struct Foo {
29    |        ^^^
30 note: required by a bound in `assert_sized`
31   --> $DIR/extern-types-unsized.rs:19:17
32    |
33 LL | fn assert_sized<T>() {}
34    |                 ^ required by this bound in `assert_sized`
35 help: consider relaxing the implicit `Sized` restriction
36    |
37 LL | fn assert_sized<T: ?Sized>() {}
38    |                  ++++++++
39
40 error[E0277]: the size for values of type `A` cannot be known at compilation time
41   --> $DIR/extern-types-unsized.rs:28:5
42    |
43 LL |     assert_sized::<Bar<A>>();
44    |     ^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
45    |
46    = help: within `Bar<A>`, the trait `Sized` is not implemented for `A`
47 note: required because it appears within the type `Bar<A>`
48   --> $DIR/extern-types-unsized.rs:14:8
49    |
50 LL | struct Bar<T: ?Sized> {
51    |        ^^^
52 note: required by a bound in `assert_sized`
53   --> $DIR/extern-types-unsized.rs:19:17
54    |
55 LL | fn assert_sized<T>() {}
56    |                 ^ required by this bound in `assert_sized`
57 help: consider relaxing the implicit `Sized` restriction
58    |
59 LL | fn assert_sized<T: ?Sized>() {}
60    |                  ++++++++
61
62 error[E0277]: the size for values of type `A` cannot be known at compilation time
63   --> $DIR/extern-types-unsized.rs:31:5
64    |
65 LL |     assert_sized::<Bar<Bar<A>>>();
66    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
67    |
68    = help: within `Bar<Bar<A>>`, the trait `Sized` is not implemented for `A`
69 note: required because it appears within the type `Bar<A>`
70   --> $DIR/extern-types-unsized.rs:14:8
71    |
72 LL | struct Bar<T: ?Sized> {
73    |        ^^^
74 note: required by a bound in `assert_sized`
75   --> $DIR/extern-types-unsized.rs:19:17
76    |
77 LL | fn assert_sized<T>() {}
78    |                 ^ required by this bound in `assert_sized`
79 help: consider relaxing the implicit `Sized` restriction
80    |
81 LL | fn assert_sized<T: ?Sized>() {}
82    |                  ++++++++
83
84 error: aborting due to 4 previous errors
85
86 For more information about this error, try `rustc --explain E0277`.