about summary refs log tree commit diff
path: root/tests/ui/typeck/issue-29181.rs
blob: d068356d47790be529c0dd949ae0e13cc57435ce (plain)
1
2
3
4
5
6
7
8
9
//@ aux-build:issue-29181.rs

extern crate issue_29181 as foo;

fn main() {
    0.homura(); //~ ERROR no method named `homura` found
    // Issue #47759, detect existing method on the fundamental impl:
    let _ = |x: f64| x * 2.0.exp(); //~ ERROR can't call method `exp` on ambiguous numeric type
}