]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-20676.rs
Rollup merge of #93097 - GuillaumeGomez:settings-js, r=jsha
[rust.git] / src / test / ui / issues / issue-20676.rs
1 // run-pass
2 // Regression test for #20676. Error was that we didn't support
3 // UFCS-style calls to a method in `Trait` where `Self` was bound to a
4 // trait object of type `Trait`. See also `ufcs-trait-object.rs`.
5
6
7 use std::fmt;
8
9 fn main() {
10     let a: &dyn fmt::Debug = &1;
11     format!("{:?}", a);
12 }