mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
16 lines
563 B
Plaintext
16 lines
563 B
Plaintext
error[E0401]: can't use `Self` from outer item
|
|
--> $DIR/issue-12796.rs:3:22
|
|
|
|
|
LL | fn inner(_: &Self) {
|
|
| ----- ^^^^
|
|
| | |
|
|
| | use of `Self` from outer item
|
|
| | can't use `Self` here
|
|
| `Self` used in this inner function
|
|
|
|
|
= note: nested items are independent from their parent item for everything except for privacy and name resolution
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0401`.
|