about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2016-03-12 02:41:27 +0530
committerManish Goregaokar <manishsmail@gmail.com>2016-03-12 06:47:56 +0530
commit7a1df9e8deba4e5aebc784b91afc9651e4663feb (patch)
tree483b7e5364943129cde1f7212d7362bf3b5b4735 /src
parent744ffed25a174cdce68483522e24bf3c55622951 (diff)
parent266c41707147ea66f06b0ef8e3086c01f9791447 (diff)
downloadrust-7a1df9e8deba4e5aebc784b91afc9651e4663feb.tar.gz
rust-7a1df9e8deba4e5aebc784b91afc9651e4663feb.zip
Rollup merge of #32180 - srinivasreddy:type_check_lib, r=steveklabnik
removed integer suffixes in librustc_typeck crate
Diffstat (limited to 'src')
-rw-r--r--src/librustc_typeck/diagnostics.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs
index cfe76206b02..f376b42fbf9 100644
--- a/src/librustc_typeck/diagnostics.rs
+++ b/src/librustc_typeck/diagnostics.rs
@@ -379,7 +379,7 @@ impl Test {
 
 fn main() {
     let x = Test;
-    let v = &[0i32];
+    let v = &[0];
 
     x.method::<i32, i32>(v); // error: only one type parameter is expected!
 }
@@ -398,7 +398,7 @@ impl Test {
 
 fn main() {
     let x = Test;
-    let v = &[0i32];
+    let v = &[0];
 
     x.method::<i32>(v); // OK, we're good!
 }
@@ -901,7 +901,7 @@ Example of erroneous code:
 ```compile_fail
 enum Foo { FirstValue(i32) };
 
-let u = Foo::FirstValue { value: 0i32 }; // error: Foo::FirstValue
+let u = Foo::FirstValue { value: 0 }; // error: Foo::FirstValue
                                          // isn't a structure!
 // or even simpler, if the name doesn't refer to a structure at all.
 let t = u32 { value: 4 }; // error: `u32` does not name a structure.