X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=tests%2Ftarget%2Fmultiple.rs;h=0c330d80a56444b683bce86b34b96faae6744268;hb=4f522794ae0c536768908a4dd3e8292ada2c70a0;hp=49d0520a5d1a42cf5f7104a31051164b8fa7f294;hpb=18ccd0190ee6ef4a6e1bb9d737e515b872009711;p=rust.git diff --git a/tests/target/multiple.rs b/tests/target/multiple.rs index 49d0520a5d1..0c330d80a56 100644 --- a/tests/target/multiple.rs +++ b/tests/target/multiple.rs @@ -4,7 +4,6 @@ // Test of lots of random stuff. // FIXME split this into multiple, self-contained tests. - #[attr1] extern crate foo; #[attr2] @@ -17,14 +16,13 @@ extern crate foo; use std::cell::*; -use std::{self, any, ascii, borrow, boxed, char, borrow, boxed, char, borrow, borrow, boxed, char, - borrow, boxed, char, borrow, boxed, char, borrow, boxed, char, borrow, boxed, char, - borrow, boxed, char, borrow, boxed, char, borrow, boxed, char}; +use std::{self, any, ascii, borrow, borrow, borrow, borrow, borrow, borrow, borrow, borrow, + borrow, borrow, borrow, boxed, boxed, boxed, boxed, boxed, boxed, boxed, boxed, boxed, + boxed, char, char, char, char, char, char, char, char, char, char}; mod doc; mod other; - // sfdgfffffffffffffffffffffffffffffffffffffffffffffffffffffff // ffffffffffffffffffffffffffffffffffffffffff @@ -39,8 +37,8 @@ fn foo() -> Box } fn baz< - 'a: 'b, // comment on 'a - T: SomsssssssssssssssssssssssssssssssssssssssssssssssssssssseType, /* comment on T */ + 'a: 'b, // comment on 'a + T: SomsssssssssssssssssssssssssssssssssssssssssssssssssssssseType, // comment on T >( a: A, b: B, // comment on b @@ -71,7 +69,7 @@ impl Bar { fn foo( &mut self, a: sdfsdfcccccccccccccccccccccccccccccccccccccccccccccccccc, // comment on a - b: sdfasdfsdfasfs, // closing comment + b: sdfasdfsdfasfs, // closing comment ) -> isize { } @@ -129,7 +127,6 @@ fn main() { println!("{}", i); } - while true { hello(); } @@ -151,24 +148,26 @@ fn main() { let s = expand(a, b); } -fn deconstruct() - -> (SocketAddr, - Method, - Headers, - RequestUri, - HttpVersion, - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) -{ +fn deconstruct() -> ( + SocketAddr, + Method, + Headers, + RequestUri, + HttpVersion, + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA, +) { } fn deconstruct( foo: Bar, -) -> (SocketAddr, - Method, - Headers, - RequestUri, - HttpVersion, - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) { +) -> ( + SocketAddr, + Method, + Headers, + RequestUri, + HttpVersion, + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA, +) { } #[rustfmt_skip]