about summary refs log tree commit diff
path: root/tests/ui/trait-bounds/issue-119530-sugg-from-fn.rs
blob: cfe378f55b1ee613f4abc010ef462613d5ec5d81 (plain)
1
2
3
4
5
fn foo() -> String { String::new() }

fn main() {
    let string_arr = [foo(); 64]; //~ ERROR the trait bound `String: Copy` is not satisfied
}