about summary refs log tree commit diff
path: root/tests/ui/traits/const-traits/minicore-drop-fail.stderr
blob: 12d1877a18abaa1796a217b9975a27ce575fa4f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
error[E0493]: destructor of `NotDropImpl` cannot be evaluated at compile-time
  --> $DIR/minicore-drop-fail.rs:27:13
   |
LL |     let _ = NotDropImpl;
   |             ^^^^^^^^^^^- value is dropped here
   |             |
   |             the destructor for this type cannot be evaluated in constant functions

error[E0493]: destructor of `Contains<NotDropImpl>` cannot be evaluated at compile-time
  --> $DIR/minicore-drop-fail.rs:29:13
   |
LL |     let _ = Contains(NotDropImpl);
   |             ^^^^^^^^^^^^^^^^^^^^^- value is dropped here
   |             |
   |             the destructor for this type cannot be evaluated in constant functions

error[E0493]: destructor of `Conditional<()>` cannot be evaluated at compile-time
  --> $DIR/minicore-drop-fail.rs:31:13
   |
LL |     let _ = Conditional(());
   |             ^^^^^^^^^^^^^^^- value is dropped here
   |             |
   |             the destructor for this type cannot be evaluated in constant functions

error[E0493]: destructor of `T` cannot be evaluated at compile-time
  --> $DIR/minicore-drop-fail.rs:35:28
   |
LL | const fn drop_arbitrary<T>(_: T) {
   |                            ^ the destructor for this type cannot be evaluated in constant functions
LL |
LL | }
   | - value is dropped here

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0493`.