File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
branches/try/src/test/run-pass Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: b4c965ee803a4521d8b4575f634e036f93e408f3
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 3a96d6a9818fe2affc98a187fb1065120458cee9
5
- refs/heads/try: 4a22c3368fe4fd570859fbbf03b971f4913a8569
5
+ refs/heads/try: c22d026326f10f8a4e60d49c6fbf37de3c970a78
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
8
8
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
Original file line number Diff line number Diff line change @@ -137,6 +137,13 @@ pub fn main() {
137
137
t ! ( format!( "{:+10.3e}" , 1.2345e6f64 ) , " +1.234e6" ) ;
138
138
t ! ( format!( "{:+10.3e}" , -1.2345e6f64 ) , " -1.234e6" ) ;
139
139
140
+ // Test that pointers don't get truncated.
141
+ {
142
+ let val = usize:: MAX ;
143
+ let exp = format ! ( "{:#x}" , val) ;
144
+ t ! ( format!( "{:p}" , val as * const isize ) , exp) ;
145
+ }
146
+
140
147
// Escaping
141
148
t ! ( format!( "{{" ) , "{" ) ;
142
149
t ! ( format!( "}}" ) , "}" ) ;
You can’t perform that action at this time.
0 commit comments