Given the following code:
#[doc(alias = ["foo"])]
fn t() {}
The current output is:
Compiling playground v0.0.1 (/playground)
error: expected unsuffixed literal or identifier, found `[`
--> src/lib.rs:1:15
|
1 | #[doc(alias = ["foo"])]
| ^
error: aborting due to previous error
error: could not compile `playground`
Ideally the output should look like:
Compiling playground v0.0.1 (/playground)
error: expected unsuffixed literal or identifier, found `[`
--> src/lib.rs:1:15
|
1 | #[doc(alias("foo"))]
| ^
error: aborting due to previous error
help: list syntax is not supported for `alias` attribute
suggestion: use `alias("foo")` instead of `alias = ["foo"]`
error: could not compile `playground`
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=dcc601d35deecf1558b3dd66660bf8d5
Follow up of #82846
Given the following code:
The current output is:
Ideally the output should look like:
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=dcc601d35deecf1558b3dd66660bf8d5
Follow up of #82846