]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggest-using-chars.rs
Rollup merge of #92959 - asquared31415:test-non-fn-help, r=estebank
[rust.git] / src / test / ui / suggest-using-chars.rs
1 pub fn main() {
2     let _ = "foo".iter(); //~ ERROR no method named `iter` found for reference `&'static str` in the current scope
3     let _ = "foo".foo(); //~ ERROR no method named `foo` found for reference `&'static str` in the current scope
4     let _ = String::from("bar").iter(); //~ ERROR no method named `iter` found for struct `String` in the current scope
5     let _ = (&String::from("bar")).iter(); //~ ERROR no method named `iter` found for reference `&String` in the current scope
6     let _ = 0.iter(); //~ ERROR no method named `iter` found for type `{integer}` in the current scope
7 }