summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/suggest-box-new.stderr
blob: ed7fa036408a4f4b9e366ffef40d39ef07895619 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error[E0423]: cannot initialize a tuple struct which contains private fields
  --> $DIR/suggest-box-new.rs:9:19
   |
LL |         wtf: Some(Box(U {
   |                   ^^^
   |
note: constructor is not visible here due to private fields
  --> $SRC_DIR/alloc/src/boxed.rs:LL:COL
   |
   = note: private field
   |
   = note: private field
help: you might have meant to use the `new` associated function
   |
LL |         wtf: Some(Box::new(U {
   |                      +++++

error: aborting due to previous error

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