Test that a class type name gets printed correctly in a...
"cannot be dereferenced" error message. Closes #2370
This commit is contained in:
parent
288799786b
commit
0343b0553b
2 changed files with 14 additions and 0 deletions
7
src/test/compile-fail/issue-2370-2.rs
Normal file
7
src/test/compile-fail/issue-2370-2.rs
Normal file
|
@ -0,0 +1,7 @@
|
|||
// error-pattern: type cat cannot be dereferenced
|
||||
class cat { new() {} }
|
||||
|
||||
fn main() {
|
||||
let kitty : cat = cat();
|
||||
log (error, *kitty);
|
||||
}
|
7
src/test/compile-fail/issue-2370.rs
Normal file
7
src/test/compile-fail/issue-2370.rs
Normal file
|
@ -0,0 +1,7 @@
|
|||
// error-pattern: type cat cannot be dereferenced
|
||||
class cat { new() {} }
|
||||
|
||||
fn main() {
|
||||
let nyan = cat();
|
||||
log (error, *nyan);
|
||||
}
|
Loading…
Add table
Reference in a new issue