11error[E0435]: attempt to use a non-constant value in a constant
2- --> $DIR/constness.rs:32 :34
2+ --> $DIR/constness.rs:30 :34
33 |
44LL | let _ = const { size_of_val(&v) };
55 | ^ non-constant value
@@ -11,7 +11,7 @@ LL + const v: /* Type */ = NotConstSized;
1111 |
1212
1313error[E0435]: attempt to use a non-constant value in a constant
14- --> $DIR/constness.rs:37 :33
14+ --> $DIR/constness.rs:35 :33
1515 |
1616LL | let _ = const { size_of_val(v) };
1717 | ^ non-constant value
@@ -23,49 +23,49 @@ LL + const v: /* Type */ = NotConstSized;
2323 |
2424
2525error[E0277]: the trait bound `NotConstSized: const Sized` is not satisfied
26- --> $DIR/constness.rs:22 :31
26+ --> $DIR/constness.rs:20 :31
2727 |
2828LL | let _ = const { size_of::<NotConstSized>() };
2929 | ^^^^^^^^^^^^^
3030 |
3131note: required by a bound in `size_of`
32- --> $DIR/constness.rs:18 :21
32+ --> $DIR/constness.rs:16 :21
3333 |
3434LL | const fn size_of<T: ~const Sized>() { unimplemented!() }
3535 | ^^^^^^^^^^^^ required by this bound in `size_of`
3636
3737error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
38- --> $DIR/constness.rs:26 :31
38+ --> $DIR/constness.rs:24 :31
3939 |
4040LL | let _ = const { size_of::<NotConstMetaSized>() };
4141 | ^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
4242 |
4343 = help: within `NotConstMetaSized`, the trait `Sized` is not implemented for `[u8]`
4444note: required because it appears within the type `NotConstMetaSized`
45- --> $DIR/constness.rs:12 :8
45+ --> $DIR/constness.rs:10 :8
4646 |
4747LL | struct NotConstMetaSized([u8]);
4848 | ^^^^^^^^^^^^^^^^^
4949note: required by a bound in `size_of`
50- --> $DIR/constness.rs:18 :21
50+ --> $DIR/constness.rs:16 :21
5151 |
5252LL | const fn size_of<T: ~const Sized>() { unimplemented!() }
5353 | ^^^^^^^^^^^^ required by this bound in `size_of`
5454
5555error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
56- --> $DIR/constness.rs:28 :23
56+ --> $DIR/constness.rs:26 :23
5757 |
5858LL | let _ = size_of::<NotConstMetaSized>();
5959 | ^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
6060 |
6161 = help: within `NotConstMetaSized`, the trait `Sized` is not implemented for `[u8]`
6262note: required because it appears within the type `NotConstMetaSized`
63- --> $DIR/constness.rs:12 :8
63+ --> $DIR/constness.rs:10 :8
6464 |
6565LL | struct NotConstMetaSized([u8]);
6666 | ^^^^^^^^^^^^^^^^^
6767note: required by a bound in `size_of`
68- --> $DIR/constness.rs:18 :21
68+ --> $DIR/constness.rs:16 :21
6969 |
7070LL | const fn size_of<T: ~const Sized>() { unimplemented!() }
7171 | ^^^^^^^^^^^^ required by this bound in `size_of`
0 commit comments