Skip to content

Commit a612e73

Browse files
committed
moved renamed docs formatted | lexical-scoping.rs
1 parent 3bc767e commit a612e73

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/ui/lexical-scoping.rs renamed to tests/ui/resolve/type-param-local-var-shadowing.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
//! Test that items in subscopes correctly shadow type parameters and local variables
2+
//!
3+
//! Regression test for https://github.com/rust-lang/rust/issues/23880
4+
15
//@ run-pass
2-
// Tests that items in subscopes can shadow type parameters and local variables (see issue #23880).
36

47
#![allow(unused)]
5-
struct Foo<X> { x: Box<X> }
8+
struct Foo<X> {
9+
x: Box<X>,
10+
}
611
impl<Bar> Foo<Bar> {
712
fn foo(&self) {
813
type Bar = i32;

0 commit comments

Comments
 (0)