We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57e8287 commit b98a844Copy full SHA for b98a844
src/test/ui/issues/issue-64430.rs
@@ -0,0 +1,14 @@
1
+// compile-flags:-C panic=abort
2
+
3
+#![no_std]
4
+pub struct Foo;
5
6
+fn main() {
7
+ Foo.bar()
8
+ //~^ ERROR E0599
9
+}
10
11
+#[panic_handler]
12
+fn panic(_info: &core::panic::PanicInfo) -> ! {
13
+ loop{}
14
src/test/ui/issues/issue-64430.stderr
@@ -0,0 +1,12 @@
+error[E0599]: no method named `bar` found for type `Foo` in the current scope
+ --> $DIR/issue-64430.rs:7:9
+ |
+LL | pub struct Foo;
+ | --------------- method `bar` not found for this
+...
+LL | Foo.bar()
+ | ^^^ method not found in `Foo`
+error: aborting due to previous error
+For more information about this error, try `rustc --explain E0599`.
0 commit comments