• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // SPDX-License-Identifier: Apache-2.0 OR MIT
2 
3 use std::pin::Pin;
4 
5 #[cfg_attr(any(), pin_project::pin_project)]
6 struct Foo<T> {
7     f: T,
8 }
9 
main()10 fn main() {
11     let mut x = Foo { f: 0_u8 };
12     let _ = Pin::new(&mut x).project(); //~ ERROR E0599
13 }
14