Skip to content

Commit

Permalink
add no_std test
Browse files Browse the repository at this point in the history
  • Loading branch information
dimpolo committed Mar 4, 2021
1 parent 63e0232 commit 61874ef
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions tests/no_std.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#![no_std]
#![allow(dead_code)]

use auto_impl::auto_impl;

mod core {}

mod alloc {}

struct Box;
struct Rc;
struct Arc;
struct Fn;
struct FnMut;

#[auto_impl(&, &mut, Box, Rc, Arc)]
trait Test {}

#[auto_impl(Fn)]
trait TestFn {
fn test(&self);
}

#[auto_impl(FnMut)]
trait TestFnMut {
fn test(&mut self);
}

0 comments on commit 61874ef

Please sign in to comment.