You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// error-pattern: type cat cannot be dereferenced
class cat { new() {} }
fn main() {
let kitty : cat = cat();
log (error, *kitty);
}
This test fails correctly as is, but if I move the error pattern to be a //! ERROR comment on the same line with log (error, *kitty);, the test runner complains it didn't find the expected error pattern. As rustc reports the error on the correct line, I can only guess this has something to do with the asterisk in *kitty, but I'm not totally sure.
The text was updated successfully, but these errors were encountered:
This test fails correctly as is, but if I move the error pattern to be a
//! ERROR
comment on the same line withlog (error, *kitty);
, the test runner complains it didn't find the expected error pattern. As rustc reports the error on the correct line, I can only guess this has something to do with the asterisk in*kitty
, but I'm not totally sure.The text was updated successfully, but these errors were encountered: