rust/src/test
bors 3fbee34a89 auto merge of #12238 : ktt3ja/rust/lifetime-error-msg, r=nikomatsakis
For the following code snippet:

```rust
struct Foo { bar: int }
fn foo1(x: &Foo) -> &int {
    &x.bar
}
```

This PR generates the following error message:

```rust
test.rs:2:1: 4:2 note: consider using an explicit lifetime parameter as shown: fn foo1<'a>(x: &'a Foo) -> &'a int
test.rs:2 fn foo1(x: &Foo) -> &int {
test.rs:3     &x.bar
test.rs:4 }
test.rs:3:5: 3:11 error: cannot infer an appropriate lifetime for borrow expression due to conflicting requirements
test.rs:3     &x.bar
              ^~~~~~
```

Currently it does not support methods.
2014-03-13 09:41:35 -07:00
..
auxiliary
bench Update io iterators to produce IoResults 2014-03-12 22:42:50 -04:00
codegen
compile-fail auto merge of #12238 : ktt3ja/rust/lifetime-error-msg, r=nikomatsakis 2014-03-13 09:41:35 -07:00
debug-info
pretty
run-fail
run-make
run-pass Region + borrow checker support and tests for overloaded autoderef. 2014-03-13 14:21:46 +02:00
run-pass-fulldeps