]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-29181.rs
Auto merge of #95380 - compiler-errors:unit-destructure-assign, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-29181.rs
1 // aux-build:issue-29181.rs
2
3 extern crate issue_29181 as foo;
4
5 fn main() {
6     0.homura(); //~ ERROR no method named `homura` found
7     // Issue #47759, detect existing method on the fundamental impl:
8     let _ = |x: f64| x * 2.0.exp(); //~ ERROR can't call method `exp` on ambiguous numeric type
9 }