]> git.proxmox.com Git - rustc.git/blame_incremental - src/test/rustdoc/deprecated.rs
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / rustdoc / deprecated.rs
... / ...
CommitLineData
1// @has deprecated/index.html '//*[@class="item-left module-item"]/span[@class="stab deprecated"]' \
2// 'Deprecated'
3// @has - '//*[@class="item-right docblock-short"]' 'Deprecated docs'
4
5// @has deprecated/struct.S.html '//*[@class="stab deprecated"]' \
6// 'Deprecated since 1.0.0: text'
7/// Deprecated docs
8#[deprecated(since = "1.0.0", note = "text")]
9pub struct S;
10
11// @matches deprecated/index.html '//*[@class="item-right docblock-short"]' '^Docs'
12/// Docs
13pub struct T;
14
15// @matches deprecated/struct.U.html '//*[@class="stab deprecated"]' \
16// 'Deprecated since 1.0.0$'
17#[deprecated(since = "1.0.0")]
18pub struct U;
19
20// @matches deprecated/struct.V.html '//*[@class="stab deprecated"]' \
21// 'Deprecated: text$'
22#[deprecated(note = "text")]
23pub struct V;
24
25// @matches deprecated/struct.W.html '//*[@class="stab deprecated"]' \
26// 'Deprecated$'
27#[deprecated]
28pub struct W;
29
30// @matches deprecated/struct.X.html '//*[@class="stab deprecated"]' \
31// 'Deprecated: shorthand reason$'
32#[deprecated = "shorthand reason"]
33pub struct X;