1 error[E0277]: the size for values of type `A` cannot be known at compilation time
2 --> $DIR/extern-types-unsized.rs:22:20
4 LL | assert_sized::<A>();
5 | ^ doesn't have a size known at compile-time
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
11 LL | fn assert_sized<T>() {}
12 | ^ required by this bound in `assert_sized`
13 help: consider relaxing the implicit `Sized` restriction
15 LL | fn assert_sized<T: ?Sized>() {}
18 error[E0277]: the size for values of type `A` cannot be known at compilation time
19 --> $DIR/extern-types-unsized.rs:25:20
21 LL | assert_sized::<Foo>();
22 | ^^^ doesn't have a size known at compile-time
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
30 note: required by a bound in `assert_sized`
31 --> $DIR/extern-types-unsized.rs:19:17
33 LL | fn assert_sized<T>() {}
34 | ^ required by this bound in `assert_sized`
35 help: consider relaxing the implicit `Sized` restriction
37 LL | fn assert_sized<T: ?Sized>() {}
40 error[E0277]: the size for values of type `A` cannot be known at compilation time
41 --> $DIR/extern-types-unsized.rs:28:20
43 LL | assert_sized::<Bar<A>>();
44 | ^^^^^^ doesn't have a size known at compile-time
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
50 LL | struct Bar<T: ?Sized> {
52 note: required by a bound in `assert_sized`
53 --> $DIR/extern-types-unsized.rs:19:17
55 LL | fn assert_sized<T>() {}
56 | ^ required by this bound in `assert_sized`
57 help: consider relaxing the implicit `Sized` restriction
59 LL | fn assert_sized<T: ?Sized>() {}
62 error[E0277]: the size for values of type `A` cannot be known at compilation time
63 --> $DIR/extern-types-unsized.rs:31:20
65 LL | assert_sized::<Bar<Bar<A>>>();
66 | ^^^^^^^^^^^ doesn't have a size known at compile-time
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
72 LL | struct Bar<T: ?Sized> {
74 note: required by a bound in `assert_sized`
75 --> $DIR/extern-types-unsized.rs:19:17
77 LL | fn assert_sized<T>() {}
78 | ^ required by this bound in `assert_sized`
79 help: consider relaxing the implicit `Sized` restriction
81 LL | fn assert_sized<T: ?Sized>() {}
84 error: aborting due to 4 previous errors
86 For more information about this error, try `rustc --explain E0277`.