Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

ices/97006.sh: fixed with errors #1727

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#97006

#!/bin/bash

cat > out.rs <<'EOF'

#![allow(unused)]

macro_rules! m {
    ($attr_path: path) => {
        #[$attr_path]
        fn f() {}
    }
}

m!(inline<u8>); //~ ERROR: unexpected generic arguments in path

fn main() {}

EOF

rustc -Zunpretty=hir out.rs
=== stdout ===
#![allow(unused)]
#[prelude_import]
use ::std::prelude::rust_2015::*;
#[macro_use]
extern crate std;

macro_rules! m { ($attr_path: path) => { #[$attr_path] fn f() {} } }
#[

inline]
fn f() { }
//~ ERROR: unexpected generic arguments in path

fn main() { }

=== stderr ===
error: unexpected generic arguments in path
  --> out.rs:11:10
   |
11 | m!(inline<u8>); //~ ERROR: unexpected generic arguments in path
   |          ^^^^

error: aborting due to 1 previous error

==============

=== stdout ===
#![allow(unused)]
#[prelude_import]
use ::std::prelude::rust_2015::*;
#[macro_use]
extern crate std;

macro_rules! m { ($attr_path: path) => { #[$attr_path] fn f() {} } }
#[

inline]
fn f() { }
//~ ERROR: unexpected generic arguments in path

fn main() { }

=== stderr ===
error: unexpected generic arguments in path
  --> out.rs:11:10
   |
11 | m!(inline<u8>); //~ ERROR: unexpected generic arguments in path
   |          ^^^^

error: aborting due to 1 previous error

==============
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant