about summary refs log tree commit diff
path: root/tests/ui/mir/static-by-value-dyn.stderr
blob: 25ed81326f43afc3160a643aa006f2b4f27df9ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error[E0277]: the size for values of type `(dyn Debug + Sync + 'static)` cannot be known at compilation time
  --> $DIR/static-by-value-dyn.rs:8:1
   |
LL | static STATIC_1: dyn Debug + Sync = *();
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
   |
   = help: the trait `Sized` is not implemented for `(dyn Debug + Sync + 'static)`
   = note: statics and constants must have a statically known size

error[E0614]: type `()` cannot be dereferenced
  --> $DIR/static-by-value-dyn.rs:8:37
   |
LL | static STATIC_1: dyn Debug + Sync = *();
   |                                     ^^^ can't be dereferenced

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0277, E0614.
For more information about an error, try `rustc --explain E0277`.