about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-02-20 13:14:23 +0000
committerbors <bors@rust-lang.org>2023-02-20 13:14:23 +0000
commit574c8aeeb5320a672c4956a8749d577637ad7712 (patch)
treec46758be9ae6e9910a97193d4766cc0c5a35460c /tests/rustdoc-js-std/parser-errors.js
parent85d4b5ac4855433fdb7584285db4f0af65805041 (diff)
parent92c403c9b01e213ad9b5a003d9c3c289abc653f1 (diff)
downloadrust-574c8aeeb5320a672c4956a8749d577637ad7712.tar.gz
rust-574c8aeeb5320a672c4956a8749d577637ad7712.zip
Auto merge of #10382 - samueltardieu:issue-10381, r=llogiq
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()`.

Fixes #10381

changelog: [`box_default`]: in case of a trait object do not omit the concrete type name
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions