]> git.lizzy.rs Git - rust.git/blob - src/librustc_error_codes/error_codes/E0599.md
Auto merge of #66396 - smmalis37:pythontest, r=alexcrichton
[rust.git] / src / librustc_error_codes / error_codes / E0599.md
1 This error occurs when a method is used on a type which doesn't implement it:
2
3 Erroneous code example:
4
5 ```compile_fail,E0599
6 struct Mouth;
7
8 let x = Mouth;
9 x.chocolate(); // error: no method named `chocolate` found for type `Mouth`
10                //        in the current scope
11 ```