) -> fmt::Result {
if let Some(v) = ver {
if containing_ver != ver && v.len() > 0 {
- write!(w, "<div class='since' title='Stable since Rust version {0}'>{0}</div>", v)?
+ write!(w, "<span class='since' title='Stable since Rust version {0}'>{0}</span>", v)?
}
}
Ok(())
-// ignore-tidy-linelength
-
#![crate_name = "foo"]
#![feature(staged_api)]
pub struct SomeStruct;
impl SomeStruct {
- // @has 'foo/struct.SomeStruct.html' '//*[@id="associatedconstant.SOME_CONST"]//div[@class="since"]' '1.1.2'
+ // @has 'foo/struct.SomeStruct.html' \
+ // '//*[@id="associatedconstant.SOME_CONST"]//span[@class="since"]' '1.1.2'
#[stable(since="1.1.2", feature="rust2")]
pub const SOME_CONST: usize = 0;
}