//@ revisions: cfail #![feature(generic_const_exprs)] #![allow(incomplete_features)] // regression test for #79251 #[derive(Debug)] struct Node where SmallVec: , { keys: SmallVec, } impl Node where SmallVec: , { fn new() -> Self { panic!() } #[inline(never)] fn split(&mut self, i: usize, k: K, right: bool) -> Node { let mut node = Node::new(); node.keys.push(k); //~^ error: no method named node } } #[derive(Debug)] struct SmallVec { data: [T; D], } impl SmallVec { fn new() -> Self { panic!() } } fn main() {}