]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/error-codes/E0411.stderr
Rollup merge of #97915 - tbu-:pr_os_string_fmt_write, r=joshtriplett
[rust.git] / src / test / ui / error-codes / E0411.stderr
index c1c25e835c148d5eb38ff18d1e40ef2ee333ee1c..4c99f9fcbf1dedbd72f5afc0538863b1bf392384 100644 (file)
@@ -1,6 +1,8 @@
 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