diff options
| author | Michael Sullivan <sully@msully.net> | 2012-07-10 14:49:22 -0700 |
|---|---|---|
| committer | Michael Sullivan <sully@msully.net> | 2012-07-10 15:12:13 -0700 |
| commit | bf06deafe63364f4322340eecfe0c3171a3efbcb (patch) | |
| tree | 2936fb187031c2cb7c16ffbe72399e2354774e7b /src/test/compile-fail/implicit-method-bind.rs | |
| parent | e4362a59b940073569c05b7e2ae2c6f686ed0bb7 (diff) | |
| download | rust-bf06deafe63364f4322340eecfe0c3171a3efbcb.tar.gz rust-bf06deafe63364f4322340eecfe0c3171a3efbcb.zip | |
Disallow implicitly binding methods in typechecker. Closes #2189.
Diffstat (limited to 'src/test/compile-fail/implicit-method-bind.rs')
| -rw-r--r-- | src/test/compile-fail/implicit-method-bind.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/compile-fail/implicit-method-bind.rs b/src/test/compile-fail/implicit-method-bind.rs new file mode 100644 index 00000000000..d0596fa08b3 --- /dev/null +++ b/src/test/compile-fail/implicit-method-bind.rs @@ -0,0 +1,3 @@ +fn main() { + let _f = 10.times; //~ ERROR attempted to take value of method +} |
