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
A cast from what should be an Rc<Box<Display>> to an Rc<Box<Display>> causes an ICE.
The following code triggers the bug:
use std::fmt::Display;use std::rc::Rc;fnmain(){let x = Rc::new(Box::new(3)asBox<Display>)asRc<Box<Display>>;println!("{}", x);}
Removing the last cast fixes any problems, and the code works as expected. Attempts to compile the included version, however, produce the following ICE. I haven't investigated whether a simpler example still causes the error.
A cast from what should be an
Rc<Box<Display>>
to anRc<Box<Display>>
causes an ICE.The following code triggers the bug:
Removing the last cast fixes any problems, and the code works as expected. Attempts to compile the included version, however, produce the following ICE. I haven't investigated whether a simpler example still causes the error.
The text was updated successfully, but these errors were encountered: