diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-03-26 10:45:04 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-03-26 10:46:37 -0700 |
| commit | 11610f9ca1a9da187c1b6f0d40ae2e369afd4fee (patch) | |
| tree | c55c23bac3d33720382394ee20e348bf31fbc307 /src/test/compile-fail/private-method.rs | |
| parent | 21111660ca7dbd95f9b0ee8c651062a607fe6345 (diff) | |
In typeck, don't call ty::store_iface_methods on private methods
This was resulting in a different error message depending on whether the private method you were trying to call was in the same crate or a different one.
Diffstat (limited to 'src/test/compile-fail/private-method.rs')
| -rw-r--r-- | src/test/compile-fail/private-method.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/private-method.rs b/src/test/compile-fail/private-method.rs index 8b257c11cd9..7dc1f44d71b 100644 --- a/src/test/compile-fail/private-method.rs +++ b/src/test/compile-fail/private-method.rs @@ -1,4 +1,4 @@ -// error-pattern:Class doesn't have a public method named nap +// error-pattern:attempted access of field nap on type class cat { priv { let mutable meows : uint; |
