]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/suggest-methods.stderr
improve unknown enum variant errors
[rust.git] / src / test / ui / suggestions / suggest-methods.stderr
1 error[E0599]: no method named `bat` found for type `Foo` in the current scope
2   --> $DIR/suggest-methods.rs:18:7
3    |
4 LL | struct Foo;
5    | ----------- method `bat` not found for this
6 ...
7 LL |     f.bat(1.0);
8    |       ^^^ help: there is a method with a similar name: `bar`
9
10 error[E0599]: no method named `is_emtpy` found for type `std::string::String` in the current scope
11   --> $DIR/suggest-methods.rs:21:15
12    |
13 LL |     let _ = s.is_emtpy();
14    |               ^^^^^^^^ help: there is a method with a similar name: `is_empty`
15
16 error[E0599]: no method named `count_eos` found for type `u32` in the current scope
17   --> $DIR/suggest-methods.rs:25:19
18    |
19 LL |     let _ = 63u32.count_eos();
20    |                   ^^^^^^^^^ help: there is a method with a similar name: `count_zeros`
21
22 error[E0599]: no method named `count_o` found for type `u32` in the current scope
23   --> $DIR/suggest-methods.rs:28:19
24    |
25 LL |     let _ = 63u32.count_o();
26    |                   ^^^^^^^
27
28 error: aborting due to 4 previous errors
29
30 For more information about this error, try `rustc --explain E0599`.