about summary refs log tree commit diff
path: root/tests/ui/issues/issue-20676.rs
blob: 2059365c7d628404fdf9b1e0f18e30004c10a052 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ run-pass
// Regression test for #20676. Error was that we didn't support
// UFCS-style calls to a method in `Trait` where `Self` was bound to a
// trait object of type `Trait`. See also `ufcs-trait-object.rs`.


use std::fmt;

fn main() {
    let a: &dyn fmt::Debug = &1;
    let _ = format!("{:?}", a);
}