2017-09-07 20:06:40 +00:00
|
|
|
#![crate_name = "foo"]
|
|
|
|
|
2020-12-05 16:31:39 +00:00
|
|
|
// @has foo/fn.bar.html '//*[@class="tooltip compile_fail"]' "ⓘ"
|
|
|
|
// @has foo/fn.bar.html '//*[@class="tooltip ignore"]' "ⓘ"
|
|
|
|
// @has foo/fn.bar.html '//*[@class="tooltip should_panic"]' "ⓘ"
|
|
|
|
// @has foo/fn.bar.html '//*[@edition="2018"]' "ⓘ"
|
2017-09-07 20:06:40 +00:00
|
|
|
|
|
|
|
/// foo
|
|
|
|
///
|
|
|
|
/// ```compile_fail
|
|
|
|
/// foo();
|
|
|
|
/// ```
|
|
|
|
///
|
|
|
|
/// ```ignore (tidy)
|
|
|
|
/// goo();
|
|
|
|
/// ```
|
|
|
|
///
|
2020-06-18 12:48:37 +00:00
|
|
|
/// ```should_panic
|
|
|
|
/// hoo();
|
|
|
|
/// ```
|
2020-06-18 15:45:52 +00:00
|
|
|
///
|
2020-12-05 16:31:39 +00:00
|
|
|
/// ```edition2018
|
2017-09-07 20:06:40 +00:00
|
|
|
/// let x = 0;
|
|
|
|
/// ```
|
|
|
|
pub fn bar() -> usize { 2 }
|