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 @@ -584,7 +584,7 @@ impl Repr for ty::ParamBounds {
584
584
ty:: BoundStatic => "'static" . to_owned ( ) ,
585
585
ty:: BoundSend => "Send" . to_owned ( ) ,
586
586
ty:: BoundSized => "Sized" . to_owned ( ) ,
587
- ty:: BoundCopy => "Pod " . to_owned ( ) ,
587
+ ty:: BoundCopy => "Copy " . to_owned ( ) ,
588
588
ty:: BoundShare => "Share" . to_owned ( ) ,
589
589
} ) ;
590
590
}
@@ -862,7 +862,7 @@ impl UserString for ty::BuiltinBound {
862
862
ty:: BoundStatic => "'static" . to_owned ( ) ,
863
863
ty:: BoundSend => "Send" . to_owned ( ) ,
864
864
ty:: BoundSized => "Sized" . to_owned ( ) ,
865
- ty:: BoundCopy => "Pod " . to_owned ( ) ,
865
+ ty:: BoundCopy => "Copy " . to_owned ( ) ,
866
866
ty:: BoundShare => "Share" . to_owned ( ) ,
867
867
}
868
868
}
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