]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/error-codes/E0390.stderr
Auto merge of #98180 - notriddle:notriddle/rustdoc-fn, r=petrochenkov,GuillaumeGomez
[rust.git] / src / test / ui / error-codes / E0390.stderr
index e635d4ec196a271351a9dd1d8b52c68f2dc4077d..0e5a9ca762b768ff2bde803695dfcac6697a9108 100644 (file)
@@ -6,6 +6,14 @@ LL | impl *mut Foo {}
    |
    = help: consider using an extension trait instead
 
-error: aborting due to previous error
+error[E0390]: cannot define inherent `impl` for primitive types
+  --> $DIR/E0390.rs:7:6
+   |
+LL | impl fn(Foo) {}
+   |      ^^^^^^^
+   |
+   = help: consider using an extension trait instead
+
+error: aborting due to 2 previous errors
 
 For more information about this error, try `rustc --explain E0390`.