]> git.lizzy.rs Git - rust.git/blob - src/test/ui/privacy/private-in-public-ill-formed.stderr
:arrow_up: rust-analyzer
[rust.git] / src / test / ui / privacy / private-in-public-ill-formed.stderr
1 error[E0118]: no nominal type found for inherent implementation
2   --> $DIR/private-in-public-ill-formed.rs:14:10
3    |
4 LL |     impl <Priv as PrivTr>::AssocAlias {
5    |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl requires a nominal type
6    |
7    = note: either implement a trait on it or create a newtype to wrap it instead
8
9 error[E0118]: no nominal type found for inherent implementation
10   --> $DIR/private-in-public-ill-formed.rs:31:10
11    |
12 LL |     impl <Priv as PrivTr>::AssocAlias {
13    |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl requires a nominal type
14    |
15    = note: either implement a trait on it or create a newtype to wrap it instead
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0118`.