blob: 27bbff09a00f2555e1aa1ac04abb10268b18f768 [file] [log] [blame]
// 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: &fmt::Debug = &1;
format!("{:?}", a);
}