diff options
Diffstat (limited to 'vendor/derive_builder/tests/compile-fail/private_build_fn.stderr')
-rw-r--r-- | vendor/derive_builder/tests/compile-fail/private_build_fn.stderr | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/derive_builder/tests/compile-fail/private_build_fn.stderr b/vendor/derive_builder/tests/compile-fail/private_build_fn.stderr new file mode 100644 index 000000000..e74211557 --- /dev/null +++ b/vendor/derive_builder/tests/compile-fail/private_build_fn.stderr @@ -0,0 +1,16 @@ +warning: unused import: `Lorem` + --> tests/compile-fail/private_build_fn.rs:23:21 + | +23 | use container::{Lorem, LoremBuilder}; + | ^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +error[E0624]: associated function `build` is private + --> tests/compile-fail/private_build_fn.rs:27:42 + | +7 | #[derive(Debug, Default, Builder)] + | ------- private associated function defined here +... +27 | let lorem2 = LoremBuilder::default().build().unwrap(); + | ^^^^^ private associated function |