]> git.proxmox.com Git - rustc.git/blob - src/test/pretty/top-level-doc-comments.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / test / pretty / top-level-doc-comments.rs
1 /// Some doc comment.
2 struct X;
3
4 // ignore-license
5
6 // Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
7 // file at the top-level directory of this distribution and at
8 // http://rust-lang.org/COPYRIGHT.
9 //
10 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
11 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
12 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
13 // option. This file may not be copied, modified, or distributed
14 // except according to those terms.
15
16 // pp-exact
17
18 // Test that rust can properly pretty print a doc comment if it's the first line in a file. some
19
20 fn main() { let x = X; }