about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2023-02-19 19:25:53 +0100
committerSamuel Tardieu <sam@rfc1149.net>2023-02-20 11:58:27 +0100
commit92c403c9b01e213ad9b5a003d9c3c289abc653f1 (patch)
treec46758be9ae6e9910a97193d4766cc0c5a35460c /tests/rustdoc-js-std/parser-errors.js
parent85d4b5ac4855433fdb7584285db4f0af65805041 (diff)
downloadrust-92c403c9b01e213ad9b5a003d9c3c289abc653f1.tar.gz
rust-92c403c9b01e213ad9b5a003d9c3c289abc653f1.zip
Box::default(): do not omit the type of the removed trait object
Within a larger expression, when the type of `Box::new(T::default())` is
`Box<dyn Trait>`, the concrete type `T` cannot be omitted in the
proposed replacement `Box::<T>::default()`.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions