diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-05-13 16:13:20 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-05-22 21:57:02 -0700 |
| commit | ca9bb2d9ace2bf085dc276e241f6707e0402093f (patch) | |
| tree | 1b000b169c7c93bd43b56cd31dd4c5c496223b90 /src/test/auxiliary | |
| parent | 291518712fd6c77717614a86450eec58e3f80df2 (diff) | |
| download | rust-ca9bb2d9ace2bf085dc276e241f6707e0402093f.tar.gz rust-ca9bb2d9ace2bf085dc276e241f6707e0402093f.zip | |
librustc: Disallow `use` from reaching into impls or traits.
This can perhaps be restored in the future. For now this is a precursor to making typedefs work as expected.
Diffstat (limited to 'src/test/auxiliary')
| -rw-r--r-- | src/test/auxiliary/use_from_trait_xc.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/auxiliary/use_from_trait_xc.rs b/src/test/auxiliary/use_from_trait_xc.rs new file mode 100644 index 00000000000..2ab95c271ae --- /dev/null +++ b/src/test/auxiliary/use_from_trait_xc.rs @@ -0,0 +1,10 @@ +pub trait Trait { + fn foo(); +} + +struct Foo; + +impl Foo { + pub fn new() {} +} + |
