Skip to content

Commit

Permalink
Add missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
nilehmann committed Sep 27, 2024
1 parent f517059 commit 9695996
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub fn test01() {}
12 changes: 12 additions & 0 deletions tests/tests/neg/error_messages/extern_specs/dup_extern_spec.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//@aux-build:dup_extern_spec_aux.rs

extern crate dup_extern_spec_aux;

use dup_extern_spec_aux::test01;
use flux_rs::*;

#[extern_spec]
fn test01();

#[extern_spec]
fn test01(); //~ERROR multiple extern specs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
use flux_rs::*;

fn test01() {}

#[extern_spec]
fn test01(); //~ERROR cannot add extern specs to local definition
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pub trait MyTrait {
fn method(&self) -> Self;
}

0 comments on commit 9695996

Please sign in to comment.