summaryrefslogtreecommitdiffstats
path: root/vendor/derive_builder/tests/compile-fail/private_builder.stderr
blob: 6684ac28c2d63a5bb8d41e3a459ca065fa2f896a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
error[E0603]: struct `LoremBuilder` is private
  --> tests/compile-fail/private_builder.rs:17:18
   |
17 |     let x = foo::LoremBuilder::default()
   |                  ^^^^^^^^^^^^ private struct
   |
note: the struct `LoremBuilder` is defined here
  --> tests/compile-fail/private_builder.rs:7:41
   |
7  |     #[derive(Debug, PartialEq, Default, Builder, Clone)]
   |                                         ^^^^^^^
   = note: this error originates in the derive macro `Builder` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0624]: associated function `build` is private
  --> tests/compile-fail/private_builder.rs:19:10
   |
7  |     #[derive(Debug, PartialEq, Default, Builder, Clone)]
   |                                         ------- private associated function defined here
...
19 |         .build()
   |          ^^^^^ private associated function