rust/src/test/ui/static
Matthew Jasper 2a3969a3f7 Use new region infer errors for explaining borrows
This gives at least some explanation for why a borrow is expected to
last for a certain free region. Also:

* Reports E0373: "closure may outlive the current function" with NLL.
* Special cases the case of returning a reference to (or value
  referencing) a local variable or temporary (E0515).
* Special case assigning a reference to a local variable in a closure
  to a captured variable.
2018-10-21 12:35:00 +01:00
..
auxiliary
static-closures.rs
static-closures.stderr
static-drop-scope.nll.stderr
static-drop-scope.rs
static-drop-scope.stderr
static-items-cant-move.nll.stderr
static-items-cant-move.rs
static-items-cant-move.stderr
static-lifetime-bound.nll.stderr
static-lifetime-bound.rs
static-lifetime-bound.stderr
static-lifetime.rs
static-lifetime.stderr
static-method-privacy.rs
static-method-privacy.stderr
static-mut-bad-types.rs
static-mut-bad-types.stderr
static-mut-foreign-requires-unsafe.rs
static-mut-foreign-requires-unsafe.stderr
static-mut-not-constant.rs
static-mut-not-constant.stderr
static-mut-not-pat.rs
static-mut-not-pat.stderr
static-mut-requires-unsafe.rs
static-mut-requires-unsafe.stderr
static-priv-by-default2.rs
static-priv-by-default2.stderr
static-reference-to-fn-1.rs
static-reference-to-fn-1.stderr
static-reference-to-fn-2.nll.stderr
static-reference-to-fn-2.rs
static-reference-to-fn-2.stderr
static-region-bound.nll.stderr
static-region-bound.rs
static-region-bound.stderr
static-vec-repeat-not-constant.rs
static-vec-repeat-not-constant.stderr