]> git.proxmox.com Git - rustc.git/blob - tests/ui/issues/issue-20676.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / 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 }