summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-62843.rs
blob: d96b12fd15ac9c99b281d820aea5af7515b2bd10 (plain)
1
2
3
4
5
fn main() {
    let line = String::from("abc");
    let pattern = String::from("bc");
    println!("{:?}", line.find(pattern)); //~ ERROR E0277
}