Skip to content

Commit 9e35cd4

Browse files
committed
---
yaml --- r: 277996 b: refs/heads/auto c: f080b13 h: refs/heads/master
1 parent 7747460 commit 9e35cd4

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
88
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
99
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1010
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11-
refs/heads/auto: 10737a5a45ed9a1d9ae73b996fae893da1d62512
11+
refs/heads/auto: f080b13c6beaa409c2bb643dd997a73ce0e75b89
1212
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1313
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
1414
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1

branches/auto/src/test/compile-fail/const-eval-overflow-4b.rs

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
#![allow(unused_imports)]
1717

18-
use std::fmt;
1918
use std::{i8, i16, i32, i64, isize};
2019
use std::{u8, u16, u32, u64, usize};
2120

@@ -26,10 +25,15 @@ const A_I8_T
2625
//~| found `u8` [E0250]
2726
= [0; (i8::MAX as usize) + 1];
2827

29-
fn main() {
30-
foo(&A_I8_T[..]);
31-
}
3228

33-
fn foo<T:fmt::Debug>(x: T) {
34-
println!("{:?}", x);
35-
}
29+
const A_CHAR_USIZE
30+
: [u32; 5u8 as char as usize]
31+
= [0; 5];
32+
33+
34+
const A_BAD_CHAR_USIZE
35+
: [u32; 5i8 as char as usize]
36+
//~^ ERROR only `u8` can be cast as `char`, not `i8`
37+
= [0; 5];
38+
39+
fn main() {}

branches/auto/src/test/run-pass/const-err.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//

0 commit comments

Comments
 (0)