File: no-attribute-macro.rs

package info (click to toggle)
rust-async-trait 0.1.83-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 348 kB
  • sloc: makefile: 2
file content (13 lines) | stat: -rw-r--r-- 163 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
pub trait Trait {
    async fn method(&self);
}

pub struct Struct;

impl Trait for Struct {
    async fn method(&self) {}
}

fn main() {
    let _: &dyn Trait;
}