mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
Consistent spacing
This commit is contained in:
@@ -22,5 +22,5 @@ fn bar() -> isize { 42 }
|
||||
|
||||
pub fn main() {
|
||||
let x: isize = Foo::<A=usize>::bar();
|
||||
//~^ERROR unexpected binding of associated item in expression path
|
||||
//~^ ERROR unexpected binding of associated item in expression path
|
||||
}
|
||||
|
||||
@@ -24,11 +24,11 @@ pub fn main() {
|
||||
s.as_bytes()[3_usize];
|
||||
s.as_bytes()[3];
|
||||
s.as_bytes()[3u8]; //~ERROR the trait `core::ops::Index<u8>` is not implemented
|
||||
//~^ERROR the trait `core::ops::Index<u8>` is not implemented
|
||||
//~^ ERROR the trait `core::ops::Index<u8>` is not implemented
|
||||
s.as_bytes()[3i8]; //~ERROR the trait `core::ops::Index<i8>` is not implemented
|
||||
//~^ERROR the trait `core::ops::Index<i8>` is not implemented
|
||||
//~^ ERROR the trait `core::ops::Index<i8>` is not implemented
|
||||
s.as_bytes()[3u32]; //~ERROR the trait `core::ops::Index<u32>` is not implemented
|
||||
//~^ERROR the trait `core::ops::Index<u32>` is not implemented
|
||||
//~^ ERROR the trait `core::ops::Index<u32>` is not implemented
|
||||
s.as_bytes()[3i32]; //~ERROR the trait `core::ops::Index<i32>` is not implemented
|
||||
//~^ERROR the trait `core::ops::Index<i32>` is not implemented
|
||||
//~^ ERROR the trait `core::ops::Index<i32>` is not implemented
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ fn dummy(&self) { }
|
||||
// This should emit the less confusing error, not the more confusing one.
|
||||
|
||||
fn foo(_x: Foo + Send) {
|
||||
//~^ERROR the trait `core::marker::Sized` is not implemented
|
||||
//~^ ERROR the trait `core::marker::Sized` is not implemented
|
||||
}
|
||||
|
||||
fn main() { }
|
||||
|
||||
Reference in New Issue
Block a user