summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-11820.rs
blob: 7ffe9652797cf969dd586e9f03660650317c25f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// run-pass
// pretty-expanded FIXME #23616

struct NoClone;

fn main() {
  let rnc = &NoClone;
  let rsnc = &Some(NoClone);

  let _: &NoClone = rnc.clone();
  let _: &Option<NoClone> = rsnc.clone();
}