2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2015-03-15 13:57:33 -05:00
|
|
|
struct NoClone;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let rnc = &NoClone;
|
|
|
|
let rsnc = &Some(NoClone);
|
|
|
|
|
|
|
|
let _: &NoClone = rnc.clone();
|
|
|
|
let _: &Option<NoClone> = rsnc.clone();
|
|
|
|
}
|