Add test file that creates a compiler error when hygiene is violated/stuff is used from outer scope

This commit is contained in:
OMGeeky
2024-01-19 20:19:00 +01:00
parent 5011dbe057
commit d4f579542d

View File

@@ -0,0 +1,14 @@
#![no_implicit_prelude]
extern crate tarpc as some_random_other_name;
#[::tarpc::derive_serde]
#[derive(Debug, PartialEq, Eq)]
pub enum TestData {
Black,
White,
}
#[::tarpc::service]
pub trait ColorProtocol {
async fn get_opposite_color(color: u8) -> u8;
}