]> git.lizzy.rs Git - rust.git/blob - src/test/ui/assign-to-method.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / assign-to-method.stderr
1 error[E0615]: attempted to take value of method `speak` on type `cat`
2   --> $DIR/assign-to-method.rs:30:8
3    |
4 LL |   nyan.speak = || println!("meow"); //~ ERROR attempted to take value of method
5    |        ^^^^^
6    |
7    = help: maybe a `()` to call it is missing?
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0615`.