1 // Test of lots of random stuff.
2 // FIXME split this into multiple, self-contained tests.
17 use std::{self, any, ascii, borrow, boxed, char, borrow, boxed, char, borrow,
18 borrow, boxed, char, borrow, boxed, char, borrow, boxed, char,
19 borrow, boxed, char, borrow, boxed, char, borrow, boxed, char,
20 borrow, boxed, char, borrow, boxed, char};
26 // sfdgfffffffffffffffffffffffffffffffffffffffffffffffffffffff ffffffffffffffffffffffffffffffffffffffffff
28 fn foo(a: isize, b: u32 /* blah blah */, c: f64) {
39 fn baz<'a: 'b, // comment on 'a
40 T: SomsssssssssssssssssssssssssssssssssssssssssssssssssssssseType /* comment on T */>
58 fn qux(a: dadsfa, // Comment 1
59 b: sdfasdfa, // Comment 2
60 c: dsfdsafa) // Comment 3
68 a: sdfsdfcccccccccccccccccccccccccccccccccccccccccccccccccc, /* commen
70 b: sdfasdfsdfasfs /* closing comment */)
84 /// The `nodes` and `edges` method each return instantiations of
85 /// `Cow<[T]>` to leave implementers the freedom to create
87 /// entirely new vectors or to pass back slices into internally owned
89 pub trait GraphWalk<'a, N, E> {
90 /// Returns all the nodes in this graph.
91 fn nodes(&'a self) -> Nodes<'a, N>;
92 /// Returns all of the edges in this graph.
93 fn edges(&'a self) -> Edges<'a, E>;
94 /// The source node for `edge`.
95 fn source(&'a self, edge: &E) -> N;
96 /// The target node for `edge`.
97 fn target(&'a self, edge: &E) -> N;
104 f : SomeType, // Comment beside a field
105 f: SomeType, // Comment beside a field
106 // Comment on a field
108 /// A doc comment on a field
114 // With a where clause and generics.
115 pub struct Foo<'a, Y: Baz>
118 f: SomeType, // Comment beside a field
131 let rc = Cell::new(42usize,
134 remaining_widthremaining_widthremaining_widthremaining_width),
136 let rc = RefCell::new(42usize, remaining_width, remaining_width); // a comment
137 let x = "Hello!!!!!!!!! abcd abcd abcd abcd abcd abcd\n abcd abcd abcd abcd abcd abcd abcd \
138 abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd \
139 abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd \