]> git.lizzy.rs Git - rust.git/blob - tests/ui/error-should-say-copy-not-pod.rs
Rollup merge of #106797 - FawazTirmizi:dev/issues/104284, r=bjorn3
[rust.git] / tests / ui / error-should-say-copy-not-pod.rs
1 // Tests that the error message uses the word Copy, not Pod.
2
3 fn check_bound<T:Copy>(_: T) {}
4
5 fn main() {
6     check_bound("nocopy".to_string()); //~ ERROR : Copy` is not satisfied
7 }