]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0277]: the size for values of type `A` cannot be known at compilation time |
e1599b0c | 2 | --> $DIR/extern-types-unsized.rs:22:20 |
b7449926 | 3 | | |
5869c6ff | 4 | LL | fn assert_sized<T>() {} |
ba9703b0 | 5 | | - required by this bound in `assert_sized` |
e1599b0c | 6 | ... |
b7449926 | 7 | LL | assert_sized::<A>(); |
e1599b0c | 8 | | ^ doesn't have a size known at compile-time |
b7449926 | 9 | | |
1b1a35ee | 10 | = help: the trait `Sized` is not implemented for `A` |
ba9703b0 XL |
11 | help: consider relaxing the implicit `Sized` restriction |
12 | | | |
5869c6ff | 13 | LL | fn assert_sized<T: ?Sized>() {} |
ba9703b0 | 14 | | ^^^^^^^^ |
b7449926 XL |
15 | |
16 | error[E0277]: the size for values of type `A` cannot be known at compilation time | |
0731742a | 17 | --> $DIR/extern-types-unsized.rs:25:5 |
b7449926 | 18 | | |
5869c6ff | 19 | LL | fn assert_sized<T>() {} |
ba9703b0 | 20 | | - required by this bound in `assert_sized` |
e1599b0c | 21 | ... |
b7449926 XL |
22 | LL | assert_sized::<Foo>(); |
23 | | ^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time | |
24 | | | |
1b1a35ee | 25 | = help: within `Foo`, the trait `Sized` is not implemented for `A` |
b7449926 | 26 | = note: required because it appears within the type `Foo` |
f035d41b XL |
27 | help: consider relaxing the implicit `Sized` restriction |
28 | | | |
5869c6ff | 29 | LL | fn assert_sized<T: ?Sized>() {} |
f035d41b | 30 | | ^^^^^^^^ |
b7449926 XL |
31 | |
32 | error[E0277]: the size for values of type `A` cannot be known at compilation time | |
0731742a | 33 | --> $DIR/extern-types-unsized.rs:28:5 |
b7449926 | 34 | | |
5869c6ff | 35 | LL | fn assert_sized<T>() {} |
ba9703b0 | 36 | | - required by this bound in `assert_sized` |
e1599b0c | 37 | ... |
b7449926 XL |
38 | LL | assert_sized::<Bar<A>>(); |
39 | | ^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time | |
40 | | | |
1b1a35ee | 41 | = help: within `Bar<A>`, the trait `Sized` is not implemented for `A` |
b7449926 | 42 | = note: required because it appears within the type `Bar<A>` |
f035d41b XL |
43 | help: consider relaxing the implicit `Sized` restriction |
44 | | | |
5869c6ff | 45 | LL | fn assert_sized<T: ?Sized>() {} |
f035d41b | 46 | | ^^^^^^^^ |
b7449926 XL |
47 | |
48 | error[E0277]: the size for values of type `A` cannot be known at compilation time | |
0731742a | 49 | --> $DIR/extern-types-unsized.rs:31:5 |
b7449926 | 50 | | |
5869c6ff | 51 | LL | fn assert_sized<T>() {} |
ba9703b0 | 52 | | - required by this bound in `assert_sized` |
e1599b0c | 53 | ... |
b7449926 XL |
54 | LL | assert_sized::<Bar<Bar<A>>>(); |
55 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time | |
56 | | | |
1b1a35ee | 57 | = help: within `Bar<Bar<A>>`, the trait `Sized` is not implemented for `A` |
b7449926 XL |
58 | = note: required because it appears within the type `Bar<A>` |
59 | = note: required because it appears within the type `Bar<Bar<A>>` | |
f035d41b XL |
60 | help: consider relaxing the implicit `Sized` restriction |
61 | | | |
5869c6ff | 62 | LL | fn assert_sized<T: ?Sized>() {} |
f035d41b | 63 | | ^^^^^^^^ |
b7449926 XL |
64 | |
65 | error: aborting due to 4 previous errors | |
66 | ||
67 | For more information about this error, try `rustc --explain E0277`. |