// Test of lots of random stuff.
// FIXME split this into multiple, self-contained tests.
-
#[attr1]
extern crate foo;
#[attr2]
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
extern crate foo;
}
-#[rustfmt_skip]
+#[rustfmt::skip]
fn qux(a: dadsfa, // Comment 1
b: sdfasdfa, // Comment 2
c: dsfdsafa) // Comment 3
/// A Doc comment
#[AnAttribute]
pub struct Foo {
- #[rustfmt_skip]
+ #[rustfmt::skip]
f : SomeType, // Comment beside a field
f: SomeType, // Comment beside a field
// Comment on a field
println!("{}", i);
}
-
while true {
hello();
}
let s = expand(a, b);
}
-fn deconstruct()
- -> (
+fn deconstruct() -> (
SocketAddr,
Method,
Headers,
RequestUri,
HttpVersion,
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA,
-)
-{
+) {
}
fn deconstruct(
) {
}
-#[rustfmt_skip]
+#[rustfmt::skip]
mod a{
fn foo(x: T) {
let x: T = dfasdf;