2014-05-10 01:35:22 +08:00
|
|
|
// Tests that the error message uses the word Copy, not Pod.
|
|
|
|
|
|
|
|
|
|
fn check_bound<T:Copy>(_: T) {}
|
|
|
|
|
|
|
|
|
|
fn main() {
|
2020-09-02 10:40:56 +03:00
|
|
|
check_bound("nocopy".to_string()); //~ ERROR : Copy` is not satisfied
|
2014-05-10 01:35:22 +08:00
|
|
|
}
|