summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0411.stderr
blob: 4c99f9fcbf1dedbd72f5afc0538863b1bf392384 (plain)
1
2
3
4
5
6
7
8
9
10
11
error[E0411]: cannot find type `Self` in this scope
  --> $DIR/E0411.rs:2:6
   |
LL | fn main() {
   |    ---- `Self` not allowed in a function
LL |     <Self>::foo;
   |      ^^^^ `Self` is only available in impls, traits, and type definitions

error: aborting due to previous error

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