fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

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