]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-20676.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-20676.rs
CommitLineData
b7449926 1// run-pass
85aaf69f
SL
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`.
223e47cc 5
c34b1796 6
85aaf69f 7use std::fmt;
223e47cc
LB
8
9fn main() {
dc9dc135 10 let a: &dyn fmt::Debug = &1;
85aaf69f 11 format!("{:?}", a);
223e47cc 12}