diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-03-24 18:13:54 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-03-26 09:57:05 -0700 |
| commit | 36ef29abf7fa14dc9361d6b30ff7f8d18bfb4157 (patch) | |
| tree | 7769ba1cae0d202a55b219efb2a04032f3bf70eb /src/test | |
| parent | 557d4346a26266d2eb13f6b0adf106b8873b0da1 (diff) | |
| download | rust-36ef29abf7fa14dc9361d6b30ff7f8d18bfb4157.tar.gz rust-36ef29abf7fa14dc9361d6b30ff7f8d18bfb4157.zip | |
Register new snapshots
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/compile-fail/borrowck-overloaded-index-autoderef.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/test/compile-fail/borrowck-overloaded-index-autoderef.rs b/src/test/compile-fail/borrowck-overloaded-index-autoderef.rs index 55a6e2ac7b8..b726c46d5d5 100644 --- a/src/test/compile-fail/borrowck-overloaded-index-autoderef.rs +++ b/src/test/compile-fail/borrowck-overloaded-index-autoderef.rs @@ -18,19 +18,6 @@ struct Foo { y: isize, } -#[cfg(stage0)] -impl Index<String> for Foo { - type Output = isize; - - fn index<'a>(&'a self, z: &String) -> &'a isize { - if *z == "x" { - &self.x - } else { - &self.y - } - } -} - impl<'a> Index<&'a String> for Foo { type Output = isize; |
