mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-03 10:33:34 +00:00
Add test for rustX
codeblock attribute
This commit is contained in:
parent
d3cb25f4cf
commit
98aa20b0a7
@ -39,3 +39,11 @@ pub fn foobar() {}
|
|||||||
/// boo
|
/// boo
|
||||||
/// ```
|
/// ```
|
||||||
pub fn b() {}
|
pub fn b() {}
|
||||||
|
|
||||||
|
/// b
|
||||||
|
//~^ ERROR
|
||||||
|
///
|
||||||
|
/// ```rust2018
|
||||||
|
/// boo
|
||||||
|
/// ```
|
||||||
|
pub fn c() {}
|
||||||
|
@ -171,5 +171,16 @@ LL | | /// ```
|
|||||||
|
|
|
|
||||||
= help: the code block will either not be tested if not marked as a rust one or the code will be wrapped inside a main function
|
= help: the code block will either not be tested if not marked as a rust one or the code will be wrapped inside a main function
|
||||||
|
|
||||||
error: aborting due to 12 previous errors
|
error: unknown attribute `rust2018`. Did you mean `edition2018`?
|
||||||
|
--> $DIR/check-attr.rs:43:1
|
||||||
|
|
|
||||||
|
LL | / /// b
|
||||||
|
LL | |
|
||||||
|
LL | | ///
|
||||||
|
LL | | /// ```rust2018
|
||||||
|
LL | | /// boo
|
||||||
|
LL | | /// ```
|
||||||
|
| |_______^
|
||||||
|
|
||||||
|
error: aborting due to 13 previous errors
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user