Skip to content

Commit 2308464

Browse files
Add test to ensure lifetime is not elided in type alias
1 parent 3e01b0a commit 2308464

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/test/rustdoc/lifetime-name.rs

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#![crate_name = "foo"]
2+
3+
// @has 'foo/type.Resolutions.html'
4+
// @has - '//*[@class="rust typedef"]' "pub type Resolutions<'tcx> = &'tcx u8;"
5+
pub type Resolutions<'tcx> = &'tcx u8;

0 commit comments

Comments
 (0)