• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // SPDX-License-Identifier: Apache-2.0 OR MIT
2 
3 use pin_project_lite::pin_project;
4 
5 pin_project! {
6     struct A<T> {
7         #[pin()] //~ ERROR no rules expected the token `(`
8         pinned: T,
9     }
10 }
11 
12 pin_project! {
13     #[pin] //~ ERROR cannot find attribute `pin` in this scope
14     struct B<T> {
15         pinned: T,
16     }
17 }
18 
19 pin_project! {
20     struct C<T> {
21         #[pin]
22         #[pin] //~ ERROR no rules expected the token `#`
23         pinned: T,
24     }
25 }
26 
main()27 fn main() {}
28