test: Add a test case for self regions and typeclass implementations
This commit is contained in:
parent
20ec72830a
commit
0972571cdd
11
src/test/run-pass/regions-self-impls.rs
Normal file
11
src/test/run-pass/regions-self-impls.rs
Normal file
@ -0,0 +1,11 @@
|
||||
type clam = { chowder: &int };
|
||||
|
||||
impl clam for clam {
|
||||
fn get_chowder() -> &self.int { ret self.chowder; }
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let clam = { chowder: &3 };
|
||||
log(debug, *clam.get_chowder());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user