]> git.lizzy.rs Git - rust.git/blob - tests/run-make-fulldeps/rustdoc-error-lines/input.rs
Rollup merge of #106441 - mllken:abstract-socket-noref, r=joshtriplett
[rust.git] / tests / run-make-fulldeps / rustdoc-error-lines / input.rs
1 // Test for #45868
2
3 // random #![feature] to ensure that crate attrs
4 // do not offset things
5 /// ```rust
6 /// #![feature(bool_to_option)]
7 /// let x: char = 1;
8 /// ```
9 pub fn foo() {
10
11 }
12
13 /// Add some text around the test...
14 ///
15 /// ```rust
16 /// #![feature(bool_to_option)]
17 /// let x: char = 1;
18 /// ```
19 ///
20 /// ...to make sure that the line number is still correct.
21 ///
22 /// Let's also add a second test in the same doc comment.
23 ///
24 /// ```rust
25 /// #![feature(bool_to_option)]
26 /// let x: char = 1;
27 /// ```
28 pub fn bar() {}