]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #31863 - matklad:clarify-reference, r=steveklabnik
authorManish Goregaokar <manishsmail@gmail.com>
Wed, 24 Feb 2016 22:51:11 +0000 (04:21 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Wed, 24 Feb 2016 22:51:11 +0000 (04:21 +0530)
Reference implied that use declarations may appear *only* at the top of blocks and modules, but it is not the case, and the following is valid:

```Rust
fn foo() {
    let x = 92;
    use baz::bar;
}
```

r? @steveklabnik

1  2 
src/doc/reference.md

Simple merge