]> git.proxmox.com Git - rustc.git/blob - tests/ui/traits/negative-impls/explicitly-unimplemented-error-message.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / traits / negative-impls / explicitly-unimplemented-error-message.stderr
1 error[E0599]: no method named `clone` found for struct `Qux` in the current scope
2 --> $DIR/explicitly-unimplemented-error-message.rs:34:9
3 |
4 LL | struct Qux;
5 | ---------- method `clone` not found for this struct
6 ...
7 LL | Qux.clone();
8 | ^^^^^ method not found in `Qux`
9 |
10 = help: items from traits can only be used if the trait is implemented and in scope
11 = note: the trait `Clone` defines an item `clone`, but is explicitly unimplemented
12
13 error[E0599]: no method named `bar` found for type `u32` in the current scope
14 --> $DIR/explicitly-unimplemented-error-message.rs:39:11
15 |
16 LL | 0_u32.bar();
17 | ^^^ method not found in `u32`
18 |
19 = help: items from traits can only be used if the trait is implemented and in scope
20 = note: the trait `Bar` defines an item `bar`, but is explicitly unimplemented
21
22 error[E0599]: no method named `foo` found for struct `Qux` in the current scope
23 --> $DIR/explicitly-unimplemented-error-message.rs:44:9
24 |
25 LL | struct Qux;
26 | ---------- method `foo` not found for this struct
27 ...
28 LL | Qux.foo();
29 | ^^^ method not found in `Qux`
30 |
31 = help: items from traits can only be used if the trait is implemented and in scope
32 = note: the following traits define an item `foo`, but are explicitly unimplemented:
33 Foo
34 FooBar
35
36 error[E0599]: no method named `foo` found for type `u32` in the current scope
37 --> $DIR/explicitly-unimplemented-error-message.rs:49:11
38 |
39 LL | 0_u32.foo();
40 | ^^^ method not found in `u32`
41 |
42 = help: items from traits can only be used if the trait is implemented and in scope
43 note: `Foo` defines an item `foo`, perhaps you need to implement it
44 --> $DIR/explicitly-unimplemented-error-message.rs:18:1
45 |
46 LL | trait Foo {
47 | ^^^^^^^^^
48 = note: the trait `FooBar` defines an item `foo`, but is explicitly unimplemented
49
50 error: aborting due to 4 previous errors
51
52 For more information about this error, try `rustc --explain E0599`.