diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-02-01 12:29:46 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-02-01 12:29:46 +0100 |
| commit | 230846433df2acde778b31fb1b3d3e194c29a0af (patch) | |
| tree | ba59533414c1f17c82f8d4395d0d7c4cc18c8dfd | |
| parent | 3e01b0a8fd9325928a1df10ee1c5210dacc5a859 (diff) | |
| download | rust-230846433df2acde778b31fb1b3d3e194c29a0af.tar.gz rust-230846433df2acde778b31fb1b3d3e194c29a0af.zip | |
Add test to ensure lifetime is not elided in type alias
| -rw-r--r-- | src/test/rustdoc/lifetime-name.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/rustdoc/lifetime-name.rs b/src/test/rustdoc/lifetime-name.rs new file mode 100644 index 00000000000..5d30a745a61 --- /dev/null +++ b/src/test/rustdoc/lifetime-name.rs @@ -0,0 +1,5 @@ +#![crate_name = "foo"] + +// @has 'foo/type.Resolutions.html' +// @has - '//*[@class="rust typedef"]' "pub type Resolutions<'tcx> = &'tcx u8;" +pub type Resolutions<'tcx> = &'tcx u8; |
