summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0451.stderr
blob: 4d54e17d5070ded3aae9afd5751ca3447880c91f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0451]: field `b` of struct `Bar::Foo` is private
  --> $DIR/E0451.rs:24:23
   |
LL |     let Bar::Foo{a:a, b:b} = foo; //~ ERROR E0451
   |                       ^^^ field `b` is private

error[E0451]: field `b` of struct `Bar::Foo` is private
  --> $DIR/E0451.rs:28:29
   |
LL |     let f = Bar::Foo{ a: 0, b: 0 }; //~ ERROR E0451
   |                             ^^^^ field `b` is private

error: aborting due to 2 previous errors

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