]> git.proxmox.com Git - rustc.git/blame - src/test/ui/extern/extern-types-unsized.stderr
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / extern / extern-types-unsized.stderr
CommitLineData
b7449926 1error[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 4LL | fn assert_sized<T>() {}
ba9703b0 5 | - required by this bound in `assert_sized`
e1599b0c 6...
b7449926 7LL | 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
11help: consider relaxing the implicit `Sized` restriction
12 |
5869c6ff 13LL | fn assert_sized<T: ?Sized>() {}
ba9703b0 14 | ^^^^^^^^
b7449926
XL
15
16error[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 19LL | fn assert_sized<T>() {}
ba9703b0 20 | - required by this bound in `assert_sized`
e1599b0c 21...
b7449926
XL
22LL | 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
27help: consider relaxing the implicit `Sized` restriction
28 |
5869c6ff 29LL | fn assert_sized<T: ?Sized>() {}
f035d41b 30 | ^^^^^^^^
b7449926
XL
31
32error[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 35LL | fn assert_sized<T>() {}
ba9703b0 36 | - required by this bound in `assert_sized`
e1599b0c 37...
b7449926
XL
38LL | 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
43help: consider relaxing the implicit `Sized` restriction
44 |
5869c6ff 45LL | fn assert_sized<T: ?Sized>() {}
f035d41b 46 | ^^^^^^^^
b7449926
XL
47
48error[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 51LL | fn assert_sized<T>() {}
ba9703b0 52 | - required by this bound in `assert_sized`
e1599b0c 53...
b7449926
XL
54LL | 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
60help: consider relaxing the implicit `Sized` restriction
61 |
5869c6ff 62LL | fn assert_sized<T: ?Sized>() {}
f035d41b 63 | ^^^^^^^^
b7449926
XL
64
65error: aborting due to 4 previous errors
66
67For more information about this error, try `rustc --explain E0277`.