File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -578,7 +578,7 @@ impl Repr for ty::ParamBounds {
578
578
ty:: BoundStatic => "'static" . to_owned ( ) ,
579
579
ty:: BoundSend => "Send" . to_owned ( ) ,
580
580
ty:: BoundSized => "Sized" . to_owned ( ) ,
581
- ty:: BoundCopy => "Pod " . to_owned ( ) ,
581
+ ty:: BoundCopy => "Copy " . to_owned ( ) ,
582
582
ty:: BoundShare => "Share" . to_owned ( ) ,
583
583
} ) ;
584
584
}
@@ -856,7 +856,7 @@ impl UserString for ty::BuiltinBound {
856
856
ty:: BoundStatic => "'static" . to_owned ( ) ,
857
857
ty:: BoundSend => "Send" . to_owned ( ) ,
858
858
ty:: BoundSized => "Sized" . to_owned ( ) ,
859
- ty:: BoundCopy => "Pod " . to_owned ( ) ,
859
+ ty:: BoundCopy => "Copy " . to_owned ( ) ,
860
860
ty:: BoundShare => "Share" . to_owned ( ) ,
861
861
}
862
862
}
Original file line number Diff line number Diff line change
1
+ // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
2
+ // file at the top-level directory of this distribution and at
3
+ // http://rust-lang.org/COPYRIGHT.
4
+ //
5
+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6
+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8
+ // option. This file may not be copied, modified, or distributed
9
+ // except according to those terms.
10
+
11
+ // Tests that the error message uses the word Copy, not Pod.
12
+
13
+ fn check_bound < T : Copy > ( _: T ) { }
14
+
15
+ fn main ( ) {
16
+ check_bound ( "nocopy" . to_owned ( ) ) ; //~ ERROR does not fulfill `Copy`
17
+ }
You can’t perform that action at this time.
0 commit comments