rust/tests/ui/indexing/point-at-index-for-obligation-failure.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
148 B
Rust
Raw Normal View History

fn main() {
let a = std::collections::HashMap::<String,String>::new();
let s = "hello";
let _b = a[
&s //~ ERROR E0277
];
}